mirror of
https://gitee.com/jd-platform-opensource/jlog.git
synced 2024-12-21 16:15:04 +08:00
filter修改
This commit is contained in:
parent
d1b669a3f7
commit
0a5860761a
@ -34,7 +34,7 @@ public class EtcdListener implements ConfigChangeListener {
|
||||
|
||||
public EtcdListener() {
|
||||
|
||||
iterator = EtcdConfigurator.client.getKvClient().watch(ByteString.copyFromUtf8(ROOT)).asPrefix().start();
|
||||
iterator = EtcdConfigurator.client.getKvClient().watch(ByteString.copyFromUtf8("/etcd/workers")).asPrefix().start();
|
||||
getExecutorService().submit(() -> {
|
||||
while (iterator.hasNext()){
|
||||
try {
|
||||
|
@ -1,22 +0,0 @@
|
||||
package com.jd.platform.jlog.clientdemo.custom;
|
||||
|
||||
import com.jd.platform.jlog.client.cache.RespMap;
|
||||
import com.jd.platform.jlog.common.utils.FastJsonUtils;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author tangbohu
|
||||
* @version 1.0.0
|
||||
* @ClassName CustomRespMap.java
|
||||
* @Description TODO
|
||||
* @createTime 2022年03月21日 20:39:00
|
||||
*/
|
||||
public class CustomRespMap implements RespMap {
|
||||
|
||||
@Override
|
||||
public Map<String, Object> appendRespMap(String cnt) {
|
||||
|
||||
return FastJsonUtils.toMap(cnt);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user