-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(metal): Support listen key change event.
- Loading branch information
Showing
8 changed files
with
102 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
Milkomeda/src/main/java/com/github/yizzuide/milkomeda/metal/MetalChangeEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package com.github.yizzuide.milkomeda.metal; | ||
|
||
import org.springframework.context.ApplicationEvent; | ||
|
||
/** | ||
* MetalChangeEvent | ||
* | ||
* @author yizzuide | ||
* @since 3.6.2 | ||
* Create at 2020/05/26 15:29 | ||
*/ | ||
public class MetalChangeEvent extends ApplicationEvent { | ||
private static final long serialVersionUID = -8409365025025128964L; | ||
private String key; | ||
private String oldVal; | ||
private String newVal; | ||
|
||
public MetalChangeEvent(Object source, String key, String oldVal, String newVal) { | ||
super(source); | ||
this.key = key; | ||
this.oldVal = oldVal; | ||
this.newVal = newVal; | ||
} | ||
|
||
public String getKey() { | ||
return key; | ||
} | ||
|
||
public void setKey(String key) { | ||
this.key = key; | ||
} | ||
|
||
public String getOldVal() { | ||
return oldVal; | ||
} | ||
|
||
public void setOldVal(String oldVal) { | ||
this.oldVal = oldVal; | ||
} | ||
|
||
public String getNewVal() { | ||
return newVal; | ||
} | ||
|
||
public void setNewVal(String newVal) { | ||
this.newVal = newVal; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -358,4 +358,8 @@ milkomeda: | |
match: size == 0 | ||
syntax: OGNL | ||
|
||
# 分布式应用名配置(默认取当前应用名) | ||
metal: | ||
application-name: demo | ||
|
||
|