类 RaftExecutor
java.lang.Object
com.alibaba.nacos.core.distributed.raft.utils.RaftExecutor
raft executor.
- 作者:
- liaochuntao
-
方法概要
修饰符和类型方法说明static voiddoSnapshot(Runnable runnable)static voidstatic ExecutorServicestatic ScheduledExecutorServicestatic ExecutorServicestatic voidinit(RaftConfig config)init raft executor byRaftConfig.static voidscheduleAtFixedRateByCommon(Runnable command, long initialDelayMs, long periodMs)static voidscheduleByCommon(Runnable r, long delayMs)static voidscheduleRaftMemberRefreshJob(Runnable runnable, long initialDelay, long period, TimeUnit unit)
-
方法详细资料
-
init
init raft executor byRaftConfig.- 参数:
config-RaftConfig
-
scheduleRaftMemberRefreshJob
-
getRaftCoreExecutor
-
getRaftCliServiceExecutor
-
executeByCommon
-
scheduleByCommon
-
scheduleAtFixedRateByCommon
public static void scheduleAtFixedRateByCommon(Runnable command, long initialDelayMs, long periodMs) -
getRaftCommonExecutor
-
doSnapshot
-