本文整理了Java中com.netflix.config.WatchedUpdateListener
类的一些代码示例,展示了WatchedUpdateListener
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WatchedUpdateListener
类的具体详情如下:
包路径:com.netflix.config.WatchedUpdateListener
类名称:WatchedUpdateListener
[英]The listener to be called when a WatchedConfigurationSource receives an update.
[中]WatchedConfigurationSource收到更新时要调用的侦听器。
代码示例来源:origin: apache/servicecomb-java-chassis
private void updateConfiguration(WatchedUpdateResult result) {
for (WatchedUpdateListener l : listeners) {
try {
l.updateConfiguration(result);
} catch (Throwable ex) {
LOGGER.error("Error in invoking WatchedUpdateListener", ex);
}
}
}
代码示例来源:origin: apache/servicecomb-java-chassis
private void updateConfiguration(WatchedUpdateResult result) {
for (WatchedUpdateListener l : listeners) {
try {
l.updateConfiguration(result);
} catch (Throwable ex) {
LOGGER.error("Error in invoking WatchedUpdateListener", ex);
}
}
}
代码示例来源:origin: fabric8io/spring-cloud-kubernetes
private void offer(WatchedUpdateResult event) {
submit(() -> {
listeners.stream().forEach(l -> l.updateConfiguration(event));
currentData.set(event.getComplete());
});
}
代码示例来源:origin: com.netflix.archaius/archaius-zookeeper
protected void fireEvent(WatchedUpdateResult result) {
for (WatchedUpdateListener l : listeners) {
try {
l.updateConfiguration(result);
} catch (Throwable ex) {
logger.error("Error in invoking WatchedUpdateListener", ex);
}
}
}
代码示例来源:origin: org.apache.servicecomb/config-cc
private void updateConfiguration(WatchedUpdateResult result) {
for (WatchedUpdateListener l : listeners) {
try {
l.updateConfiguration(result);
} catch (Throwable ex) {
LOGGER.error("Error in invoking WatchedUpdateListener", ex);
}
}
}
代码示例来源:origin: com.netflix.archaius/archaius-etcd
private void updateConfiguration(WatchedUpdateResult result) {
for (WatchedUpdateListener l : listeners) {
try {
l.updateConfiguration(result);
} catch (Throwable ex) {
logger.error("Error in invoking WatchedUpdateListener", ex);
}
}
}
代码示例来源:origin: org.irenical.consul/archaius-consul
protected void fireEvent(WatchedUpdateResult result) {
for (WatchedUpdateListener l : listeners) {
try {
l.updateConfiguration(result);
} catch (Throwable ex) {
LOGGER.error("Error invoking WatchedUpdateListener", ex);
}
}
}
代码示例来源:origin: Kixeye/chassis
@Nullable
@Override
public Void apply(@Nullable WatchedUpdateListener watchedUpdateListener) {
watchedUpdateListener.updateConfiguration(WatchedUpdateResult.createFull(new HashMap<String, Object>()));
return null;
}
});
代码示例来源:origin: io.fabric8/spring-cloud-kubernetes-archaius
private void offer(WatchedUpdateResult event) {
submit(() -> {
listeners.stream().forEach(l -> l.updateConfiguration(event));
currentData.set(event.getComplete());
});
}
代码示例来源:origin: org.springframework.cloud/spring-cloud-kubernetes-archaius
private void offer(WatchedUpdateResult event) {
submit(() -> {
listeners.stream().forEach(l -> l.updateConfiguration(event));
currentData.set(event.getComplete());
});
}
内容来源于网络,如有侵权,请联系作者删除!