Class TimedLeaderNotifier
java.lang.Object
org.apache.camel.component.kubernetes.cluster.lock.TimedLeaderNotifier
- All Implemented Interfaces:
AutoCloseable
,org.apache.camel.Service
Receives information about the current leader and handles expiration automatically.
-
Constructor Summary
ConstructorsConstructorDescriptionTimedLeaderNotifier
(org.apache.camel.CamelContext camelContext, KubernetesClusterEventHandler handler) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.camel.Service
build, close, init
-
Constructor Details
-
TimedLeaderNotifier
public TimedLeaderNotifier(org.apache.camel.CamelContext camelContext, KubernetesClusterEventHandler handler)
-
-
Method Details
-
refreshLeadership
-
start
public void start()- Specified by:
start
in interfaceorg.apache.camel.Service
-
stop
public void stop()- Specified by:
stop
in interfaceorg.apache.camel.Service
-