本文整理了Java中com.netflix.config.WatchedUpdateListener.updateConfiguration()
方法的一些代码示例,展示了WatchedUpdateListener.updateConfiguration()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WatchedUpdateListener.updateConfiguration()
方法的具体详情如下:
包路径:com.netflix.config.WatchedUpdateListener
类名称:WatchedUpdateListener
方法名:updateConfiguration
[英]Updates the configuration either incrementally or fully depending on the type of WatchedUpdateResult that is passed.
[中]根据传递的WatchedUpdateResult类型,增量或完全更新配置。
代码示例来源: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());
});
}
内容来源于网络,如有侵权,请联系作者删除!