Package com.yahoo.vespa.curator
Interface Curator.CompletionWaiter
- Enclosing class:
- Curator
public static interface Curator.CompletionWaiter
Interface for waiting for completion of an operation
-
Method Summary
Modifier and TypeMethodDescriptionvoid
awaitCompletion
(Duration timeout) Awaits completion of something.void
Notify completion of something.
-
Method Details
-
awaitCompletion
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.
-