Class GetChildrenBuilderImpl

    • Constructor Detail

      • GetChildrenBuilderImpl

        public GetChildrenBuilderImpl​(CuratorFrameworkImpl client,
                                      org.apache.zookeeper.Watcher watcher,
                                      Backgrounding backgrounding,
                                      org.apache.zookeeper.data.Stat responseStat)
    • Method Detail

      • storingStatIn

        public WatchPathable<java.util.List<java.lang.String>> storingStatIn​(org.apache.zookeeper.data.Stat stat)
        Description copied from interface: Statable
        Have the operation fill the provided stat object
        Specified by:
        storingStatIn in interface Statable<WatchPathable<java.util.List<java.lang.String>>>
        Parameters:
        stat - the stat to have filled in
        Returns:
        this
      • inBackground

        public ErrorListenerPathable<java.util.List<java.lang.String>> inBackground​(BackgroundCallback callback,
                                                                                    java.lang.Object context)
        Description copied from interface: Backgroundable
        Perform the action in the background
        Specified by:
        inBackground in interface Backgroundable<ErrorListenerPathable<java.util.List<java.lang.String>>>
        Parameters:
        callback - a functor that will get called when the operation has completed
        context - context object - will be available from the event sent to the listener
        Returns:
        this
      • inBackground

        public ErrorListenerPathable<java.util.List<java.lang.String>> inBackground​(BackgroundCallback callback,
                                                                                    java.lang.Object context,
                                                                                    java.util.concurrent.Executor executor)
        Description copied from interface: Backgroundable
        Perform the action in the background
        Specified by:
        inBackground in interface Backgroundable<ErrorListenerPathable<java.util.List<java.lang.String>>>
        Parameters:
        callback - a functor that will get called when the operation has completed
        context - context object - will be available from the event sent to the listener
        executor - executor to use for the background call
        Returns:
        this
      • inBackground

        public ErrorListenerPathable<java.util.List<java.lang.String>> inBackground​(BackgroundCallback callback,
                                                                                    java.util.concurrent.Executor executor)
        Description copied from interface: Backgroundable
        Perform the action in the background
        Specified by:
        inBackground in interface Backgroundable<ErrorListenerPathable<java.util.List<java.lang.String>>>
        Parameters:
        callback - a functor that will get called when the operation has completed
        executor - executor to use for the background call
        Returns:
        this
      • inBackground

        public ErrorListenerPathable<java.util.List<java.lang.String>> inBackground​(java.lang.Object context)
        Description copied from interface: Backgroundable
        Perform the action in the background
        Specified by:
        inBackground in interface Backgroundable<ErrorListenerPathable<java.util.List<java.lang.String>>>
        Parameters:
        context - context object - will be available from the event sent to the listener
        Returns:
        this
      • withUnhandledErrorListener

        public Pathable<java.util.List<java.lang.String>> withUnhandledErrorListener​(UnhandledErrorListener listener)
        Description copied from interface: ErrorListenerPathable
        Set an error listener for this background operation. If an exception occurs while processing the call in the background, this listener will be called
        Specified by:
        withUnhandledErrorListener in interface ErrorListenerPathable<java.util.List<java.lang.String>>
        Parameters:
        listener - the listener
        Returns:
        this for chaining
      • usingWatcher

        public BackgroundPathable<java.util.List<java.lang.String>> usingWatcher​(org.apache.zookeeper.Watcher watcher)
        Description copied from interface: WatchableBase
        Set a watcher for the operation
        Specified by:
        usingWatcher in interface WatchableBase<BackgroundPathable<java.util.List<java.lang.String>>>
        Parameters:
        watcher - the watcher
        Returns:
        this
      • performBackgroundOperation

        public void performBackgroundOperation​(org.apache.curator.framework.imps.OperationAndData<java.lang.String> operationAndData)
                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • forPath

        public java.util.List<java.lang.String> forPath​(java.lang.String path)
                                                 throws java.lang.Exception
        Description copied from interface: Pathable
        Commit the currently building operation using the given path
        Specified by:
        forPath in interface Pathable<java.util.List<java.lang.String>>
        Parameters:
        path - the path
        Returns:
        operation result if any
        Throws:
        java.lang.Exception - errors