类 RaftExecutor


  • public final class RaftExecutor
    extends java.lang.Object
    raft executor.
    作者:
    liaochuntao
    • 字段详细资料

      • raftCoreExecutor

        private static java.util.concurrent.ExecutorService raftCoreExecutor
      • raftCliServiceExecutor

        private static java.util.concurrent.ExecutorService raftCliServiceExecutor
      • raftCommonExecutor

        private static java.util.concurrent.ScheduledExecutorService raftCommonExecutor
      • raftSnapshotExecutor

        private static java.util.concurrent.ExecutorService raftSnapshotExecutor
      • OWNER

        private static final java.lang.String OWNER
    • 构造器详细资料

      • RaftExecutor

        private RaftExecutor()
    • 方法详细资料

      • scheduleRaftMemberRefreshJob

        public static void scheduleRaftMemberRefreshJob​(java.lang.Runnable runnable,
                                                        long initialDelay,
                                                        long period,
                                                        java.util.concurrent.TimeUnit unit)
      • getRaftCoreExecutor

        public static java.util.concurrent.ExecutorService getRaftCoreExecutor()
      • getRaftCliServiceExecutor

        public static java.util.concurrent.ExecutorService getRaftCliServiceExecutor()
      • executeByCommon

        public static void executeByCommon​(java.lang.Runnable r)
      • scheduleByCommon

        public static void scheduleByCommon​(java.lang.Runnable r,
                                            long delayMs)
      • scheduleAtFixedRateByCommon

        public static void scheduleAtFixedRateByCommon​(java.lang.Runnable command,
                                                       long initialDelayMs,
                                                       long periodMs)
      • getRaftCommonExecutor

        public static java.util.concurrent.ScheduledExecutorService getRaftCommonExecutor()
      • doSnapshot

        public static void doSnapshot​(java.lang.Runnable runnable)