Interface AsyncCuratorFramework

    • Method Detail

      • wrap

        static AsyncCuratorFramework wrap​(org.apache.curator.framework.CuratorFramework client)
        Takes an old-style Curator instance and returns a new async instance that wraps it. Note: the instance must have been created through a chain that leads back to CuratorFrameworkFactory. i.e. you can have derived instances such as WatcherRemoveCuratorFramework etc. but the original client must have been created by the Factory.
        Parameters:
        client - instance to wrap
        Returns:
        wrapped instance
      • with

        AsyncCuratorFrameworkDsl with​(org.apache.curator.framework.api.UnhandledErrorListener listener)
        Returns a facade that adds the given UnhandledErrorListener to all background operations
        Parameters:
        listener - lister to use
        Returns:
        facade
      • with

        AsyncCuratorFrameworkDsl with​(java.util.function.UnaryOperator<org.apache.curator.framework.api.CuratorEvent> resultFilter,
                                      java.util.function.UnaryOperator<org.apache.zookeeper.WatchedEvent> watcherFilter)
        Returns a facade that adds the the given filters to all background operations and watchers. resultFilter will get called for every background callback. watcherFilter will get called for every watcher. The filters can return new versions or unchanged versions of the arguments.
        Parameters:
        resultFilter - filter to use or null
        watcherFilter - filter to use or null
        Returns:
        facade