com.netflix.config.WatchedUpdateListener.updateConfiguration()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(3.0k)|赞(0)|评价(0)|浏览(107)

本文整理了Java中com.netflix.config.WatchedUpdateListener.updateConfiguration()方法的一些代码示例,展示了WatchedUpdateListener.updateConfiguration()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WatchedUpdateListener.updateConfiguration()方法的具体详情如下:
包路径:com.netflix.config.WatchedUpdateListener
类名称:WatchedUpdateListener
方法名:updateConfiguration

WatchedUpdateListener.updateConfiguration介绍

[英]Updates the configuration either incrementally or fully depending on the type of WatchedUpdateResult that is passed.
[中]根据传递的WatchedUpdateResult类型,增量或完全更新配置。

代码示例

代码示例来源:origin: apache/servicecomb-java-chassis

  1. private void updateConfiguration(WatchedUpdateResult result) {
  2. for (WatchedUpdateListener l : listeners) {
  3. try {
  4. l.updateConfiguration(result);
  5. } catch (Throwable ex) {
  6. LOGGER.error("Error in invoking WatchedUpdateListener", ex);
  7. }
  8. }
  9. }

代码示例来源:origin: apache/servicecomb-java-chassis

  1. private void updateConfiguration(WatchedUpdateResult result) {
  2. for (WatchedUpdateListener l : listeners) {
  3. try {
  4. l.updateConfiguration(result);
  5. } catch (Throwable ex) {
  6. LOGGER.error("Error in invoking WatchedUpdateListener", ex);
  7. }
  8. }
  9. }

代码示例来源:origin: fabric8io/spring-cloud-kubernetes

  1. private void offer(WatchedUpdateResult event) {
  2. submit(() -> {
  3. listeners.stream().forEach(l -> l.updateConfiguration(event));
  4. currentData.set(event.getComplete());
  5. });
  6. }

代码示例来源:origin: com.netflix.archaius/archaius-zookeeper

  1. protected void fireEvent(WatchedUpdateResult result) {
  2. for (WatchedUpdateListener l : listeners) {
  3. try {
  4. l.updateConfiguration(result);
  5. } catch (Throwable ex) {
  6. logger.error("Error in invoking WatchedUpdateListener", ex);
  7. }
  8. }
  9. }

代码示例来源:origin: org.apache.servicecomb/config-cc

  1. private void updateConfiguration(WatchedUpdateResult result) {
  2. for (WatchedUpdateListener l : listeners) {
  3. try {
  4. l.updateConfiguration(result);
  5. } catch (Throwable ex) {
  6. LOGGER.error("Error in invoking WatchedUpdateListener", ex);
  7. }
  8. }
  9. }

代码示例来源:origin: com.netflix.archaius/archaius-etcd

  1. private void updateConfiguration(WatchedUpdateResult result) {
  2. for (WatchedUpdateListener l : listeners) {
  3. try {
  4. l.updateConfiguration(result);
  5. } catch (Throwable ex) {
  6. logger.error("Error in invoking WatchedUpdateListener", ex);
  7. }
  8. }
  9. }

代码示例来源:origin: org.irenical.consul/archaius-consul

  1. protected void fireEvent(WatchedUpdateResult result) {
  2. for (WatchedUpdateListener l : listeners) {
  3. try {
  4. l.updateConfiguration(result);
  5. } catch (Throwable ex) {
  6. LOGGER.error("Error invoking WatchedUpdateListener", ex);
  7. }
  8. }
  9. }

代码示例来源:origin: Kixeye/chassis

  1. @Nullable
  2. @Override
  3. public Void apply(@Nullable WatchedUpdateListener watchedUpdateListener) {
  4. watchedUpdateListener.updateConfiguration(WatchedUpdateResult.createFull(new HashMap<String, Object>()));
  5. return null;
  6. }
  7. });

代码示例来源:origin: io.fabric8/spring-cloud-kubernetes-archaius

  1. private void offer(WatchedUpdateResult event) {
  2. submit(() -> {
  3. listeners.stream().forEach(l -> l.updateConfiguration(event));
  4. currentData.set(event.getComplete());
  5. });
  6. }

代码示例来源:origin: org.springframework.cloud/spring-cloud-kubernetes-archaius

  1. private void offer(WatchedUpdateResult event) {
  2. submit(() -> {
  3. listeners.stream().forEach(l -> l.updateConfiguration(event));
  4. currentData.set(event.getComplete());
  5. });
  6. }

相关文章

WatchedUpdateListener类方法