Interface Curator.CompletionWaiter

  • Enclosing class:
    Curator

    public static interface Curator.CompletionWaiter
    Interface for waiting for completion of an operation
    • Method Detail

      • awaitCompletion

        void awaitCompletion​(java.time.Duration timeout)
        Awaits completion of something. Blocks until an implementation defined condition has been met.
        Parameters:
        timeout - timeout for blocking await call.
        Throws:
        CompletionTimeoutException - if timeout is reached without completion.
      • notifyCompletion

        void notifyCompletion()
        Notify completion of something. This method does not block and is called by clients that want to notify the completion waiter that something has completed.