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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
awaitCompletion(java.time.Duration timeout)
Awaits completion of something.void
notifyCompletion()
Notify completion of something.
-
-
-
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.
-
-