类 AsyncNotifyService
- java.lang.Object
-
- com.alibaba.nacos.config.server.service.notify.AsyncNotifyService
-
@Service public class AsyncNotifyService extends java.lang.ObjectAsync notify service.- 作者:
- Nacos
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 (专用程序包) classAsyncNotifyService.AsyncNotifyCallBack(专用程序包) classAsyncNotifyService.AsyncRpcNotifyCallBack(专用程序包) classAsyncNotifyService.AsyncRpcTask(专用程序包) classAsyncNotifyService.AsyncTask(专用程序包) static classAsyncNotifyService.NotifySingleRpcTask(专用程序包) static classAsyncNotifyService.NotifySingleTask
-
字段概要
字段 修饰符和类型 字段 说明 private ConfigClusterRpcClientProxyconfigClusterRpcClientProxyprivate DumpServicedumpServiceprivate static intINCREASE_STEPSprivate static org.slf4j.LoggerLOGGERprivate static intMAX_COUNTprivate com.alibaba.nacos.core.cluster.ServerMemberManagermemberManagerprivate static intMIN_RETRY_INTERVALprivate com.alibaba.nacos.common.http.client.NacosAsyncRestTemplatenacosAsyncRestTemplate
-
构造器概要
构造器 构造器 说明 AsyncNotifyService(com.alibaba.nacos.core.cluster.ServerMemberManager memberManager)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 private voidasyncTaskExecute(AsyncNotifyService.NotifySingleRpcTask task)private voidasyncTaskExecute(AsyncNotifyService.NotifySingleTask task)private static intgetDelayTime(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.
-
-
-
字段详细资料
-
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
-
configClusterRpcClientProxy
@Autowired private ConfigClusterRpcClientProxy configClusterRpcClientProxy
-
memberManager
private com.alibaba.nacos.core.cluster.ServerMemberManager memberManager
-
-
方法详细资料
-
asyncTaskExecute
private void asyncTaskExecute(AsyncNotifyService.NotifySingleTask task)
-
asyncTaskExecute
private void asyncTaskExecute(AsyncNotifyService.NotifySingleRpcTask task)
-
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
-
-