Class LeaderElectionInitiatorUtil
java.lang.Object
org.springframework.cloud.kubernetes.commons.leader.election.LeaderElectionInitiatorUtil
- Author:
- wind57
-
Method Summary
Modifier and TypeMethodDescriptionstatic CompletableFuture<?> attachReadinessLoggerPipeline(CompletableFuture<?> innerPodReadyFuture, String candidateIdentity) if 'ready' is already completed at this point, thread will run this, otherwise it will attach the pipeline and move on to 'blockReadinessCheck'.static voidblockReadinessCheck(CompletableFuture<?> ready) static voidshutDownExecutor(ExecutorService podReadyWaitingExecutor, String candidateIdentity) static voidsleep(LeaderElectionProperties leaderElectionProperties)
-
Method Details
-
blockReadinessCheck
-
shutDownExecutor
public static void shutDownExecutor(ExecutorService podReadyWaitingExecutor, String candidateIdentity) -
attachReadinessLoggerPipeline
public static CompletableFuture<?> attachReadinessLoggerPipeline(CompletableFuture<?> innerPodReadyFuture, String candidateIdentity) if 'ready' is already completed at this point, thread will run this, otherwise it will attach the pipeline and move on to 'blockReadinessCheck'. -
sleep
-