public class KubernetesLeaderRetrievalDriver extends Object implements LeaderRetrievalDriver
KubernetesLeaderElectionDriver
. LeaderRetrievalDriver
implementation for Kubernetes. It retrieves the current leader which has been elected by the
KubernetesLeaderElectionDriver
. The leader address as well as the current leader session
ID is retrieved from Kubernetes ConfigMap.Constructor and Description |
---|
KubernetesLeaderRetrievalDriver(KubernetesConfigMapSharedWatcher configMapSharedWatcher,
Executor watchExecutor,
String configMapName,
LeaderRetrievalEventHandler leaderRetrievalEventHandler,
Function<KubernetesConfigMap,LeaderInformation> leaderInformationExtractor,
FatalErrorHandler fatalErrorHandler) |
public KubernetesLeaderRetrievalDriver(KubernetesConfigMapSharedWatcher configMapSharedWatcher, Executor watchExecutor, String configMapName, LeaderRetrievalEventHandler leaderRetrievalEventHandler, Function<KubernetesConfigMap,LeaderInformation> leaderInformationExtractor, FatalErrorHandler fatalErrorHandler)
public void close()
close
in interface AutoCloseable
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.