类 ServiceInfoUpdateService

  • 所有已实现的接口:
    com.alibaba.nacos.common.lifecycle.Closeable

    public class ServiceInfoUpdateService
    extends java.lang.Object
    implements com.alibaba.nacos.common.lifecycle.Closeable
    Service information update service.
    作者:
    xiweng.yy
    • 字段详细资料

      • DEFAULT_DELAY

        private static final long DEFAULT_DELAY
        另请参阅:
        常量字段值
      • DEFAULT_UPDATE_CACHE_TIME_MULTIPLE

        private static final int DEFAULT_UPDATE_CACHE_TIME_MULTIPLE
        另请参阅:
        常量字段值
      • futureMap

        private final java.util.Map<java.lang.String,​java.util.concurrent.ScheduledFuture<?>> futureMap
      • executor

        private final java.util.concurrent.ScheduledExecutorService executor
    • 方法详细资料

      • initPollingThreadCount

        private int initPollingThreadCount​(java.util.Properties properties)
      • scheduleUpdateIfAbsent

        public void scheduleUpdateIfAbsent​(java.lang.String serviceName,
                                           java.lang.String groupName,
                                           java.lang.String clusters)
        Schedule update if absent.
        参数:
        serviceName - service name
        groupName - group name
        clusters - clusters
      • stopUpdateIfContain

        public void stopUpdateIfContain​(java.lang.String serviceName,
                                        java.lang.String groupName,
                                        java.lang.String clusters)
        Stop to schedule update if contain task.
        参数:
        serviceName - service name
        groupName - group name
        clusters - clusters
      • shutdown

        public void shutdown()
                      throws com.alibaba.nacos.api.exception.NacosException
        指定者:
        shutdown 在接口中 com.alibaba.nacos.common.lifecycle.Closeable
        抛出:
        com.alibaba.nacos.api.exception.NacosException