Class ZooKeeperManagedLedgerCache

  • All Implemented Interfaces:
    org.apache.zookeeper.Watcher

    public class ZooKeeperManagedLedgerCache
    extends java.lang.Object
    implements org.apache.zookeeper.Watcher
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.apache.zookeeper.Watcher

        org.apache.zookeeper.Watcher.Event, org.apache.zookeeper.Watcher.WatcherType
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clearTree()  
      java.util.Set<java.lang.String> get​(java.lang.String path)  
      java.util.concurrent.CompletableFuture<java.util.Set<java.lang.String>> getAsync​(java.lang.String path)  
      void process​(org.apache.zookeeper.WatchedEvent watchedEvent)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ZooKeeperManagedLedgerCache

        public ZooKeeperManagedLedgerCache​(ZooKeeperCache cache,
                                           java.lang.String path)
    • Method Detail

      • get

        public java.util.Set<java.lang.String> get​(java.lang.String path)
                                            throws org.apache.zookeeper.KeeperException,
                                                   java.lang.InterruptedException
        Throws:
        org.apache.zookeeper.KeeperException
        java.lang.InterruptedException
      • getAsync

        public java.util.concurrent.CompletableFuture<java.util.Set<java.lang.String>> getAsync​(java.lang.String path)
      • clearTree

        public void clearTree()
      • process

        public void process​(org.apache.zookeeper.WatchedEvent watchedEvent)
        Specified by:
        process in interface org.apache.zookeeper.Watcher