Class TimedLeaderNotifier

java.lang.Object
org.apache.camel.component.kubernetes.cluster.lock.TimedLeaderNotifier
All Implemented Interfaces:
AutoCloseable, org.apache.camel.Service

public class TimedLeaderNotifier extends Object implements org.apache.camel.Service
Receives information about the current leader and handles expiration automatically.
  • Constructor Details

  • Method Details

    • refreshLeadership

      public void refreshLeadership(Optional<String> leader, Long timestamp, Long lease, Set<String> members)
    • start

      public void start()
      Specified by:
      start in interface org.apache.camel.Service
    • stop

      public void stop()
      Specified by:
      stop in interface org.apache.camel.Service