类 AsyncNotifyService


  • @Service
    public class AsyncNotifyService
    extends java.lang.Object
    Async notify service.
    作者:
    Nacos
    • 字段详细资料

      • LOGGER

        private static final org.slf4j.Logger LOGGER
      • nacosAsyncRestTemplate

        private final com.alibaba.nacos.common.http.client.NacosAsyncRestTemplate nacosAsyncRestTemplate
      • MIN_RETRY_INTERVAL

        private static final int MIN_RETRY_INTERVAL
        另请参阅:
        常量字段值
      • INCREASE_STEPS

        private static final int INCREASE_STEPS
        另请参阅:
        常量字段值
      • MAX_COUNT

        private static final int MAX_COUNT
        另请参阅:
        常量字段值
      • dumpService

        @Autowired
        private DumpService dumpService
      • memberManager

        private com.alibaba.nacos.core.cluster.ServerMemberManager memberManager
    • 构造器详细资料

      • AsyncNotifyService

        @Autowired
        public AsyncNotifyService​(com.alibaba.nacos.core.cluster.ServerMemberManager memberManager)
    • 方法详细资料

      • getDelayTime

        private static int getDelayTime​(NotifyTask task)
        get delayTime and also set failCount to task; The failure time index increases, so as not to retry invalid tasks in the offline scene, which affects the normal synchronization.
        参数:
        task - notify task
        返回:
        delay