A completion object that emits completion notifications either succeeded or failed.
Constructor and description |
---|
Completion
(java.lang.Object delegate) |
Type | Name and description |
---|---|
void |
await() Cause the current thread to wait until thi completion completes. |
void |
await(long timeoutMillis) Cause the current thread to wait until this completion completes with a configurable timeout. |
void |
awaitSuccess() Cause the current thread to wait until this completion completes and succeeds. |
void |
awaitSuccess(long timeoutMillis) Cause the current thread to wait until this completion completes and succeeds with a configurable timeout. |
java.lang.Object |
getDelegate() |
void |
handler(io.vertx.core.Handler<io.vertx.core.AsyncResult<T>> completionHandler) Completion handler to receive a completion signal when this completions completes. |
boolean |
isCompleted() @return
|
boolean |
isFailed() @return
|
boolean |
isSucceeded() @return
|
void |
resolve(Future<T> future) Completes the future upon completion, otherwise fails it. |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Cause the current thread to wait until thi completion completes.
If the current thread is interrupted, an exception will be thrown.Cause the current thread to wait until this completion completes with a configurable timeout.
If completion times out or the current thread is interrupted, an exception will be thrown.timeoutMillis
- the timeout in millisecondsCause the current thread to wait until this completion completes and succeeds.
If the current thread is interrupted or the suite fails, an exception will be thrown.Cause the current thread to wait until this completion completes and succeeds with a configurable timeout.
If completion times out or the current thread is interrupted or the suite fails, an exception will be thrown.timeoutMillis
- the timeout in millisecondsCompletion handler to receive a completion signal when this completions completes.
completionHandler
- the completion handler
Completes the future upon completion, otherwise fails it.
future
- the future to resolve