Class EtcdSessionWatcher

java.lang.Object
org.apache.pulsar.metadata.impl.EtcdSessionWatcher
All Implemented Interfaces:
AutoCloseable

public class EtcdSessionWatcher extends Object implements AutoCloseable
Monitor the ETCd session state every few seconds and send notifications.
  • Constructor Details

    • EtcdSessionWatcher

      public EtcdSessionWatcher(io.etcd.jetcd.Client client, long sessionTimeoutMillis, Consumer<SessionEvent> sessionListener)
  • Method Details