类 RaftExecutor

java.lang.Object
com.alibaba.nacos.core.distributed.raft.utils.RaftExecutor

public final class RaftExecutor extends Object
raft executor.
作者:
liaochuntao
  • 方法详细资料

    • init

      public static void init(RaftConfig config)
      init raft executor by RaftConfig.
      参数:
      config - RaftConfig
    • scheduleRaftMemberRefreshJob

      public static void scheduleRaftMemberRefreshJob(Runnable runnable, long initialDelay, long period, TimeUnit unit)
    • getRaftCoreExecutor

      public static ExecutorService getRaftCoreExecutor()
    • getRaftCliServiceExecutor

      public static ExecutorService getRaftCliServiceExecutor()
    • executeByCommon

      public static void executeByCommon(Runnable r)
    • scheduleByCommon

      public static void scheduleByCommon(Runnable r, long delayMs)
    • scheduleAtFixedRateByCommon

      public static void scheduleAtFixedRateByCommon(Runnable command, long initialDelayMs, long periodMs)
    • getRaftCommonExecutor

      public static ScheduledExecutorService getRaftCommonExecutor()
    • doSnapshot

      public static void doSnapshot(Runnable runnable)