public class CountingCompletionHandler<T> extends Object implements org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<T>>
| Constructor and Description |
|---|
CountingCompletionHandler(int required) |
| Modifier and Type | Method and Description |
|---|---|
void |
fail(Throwable t)
Indicates that a call failed.
|
void |
handle(org.vertx.java.core.AsyncResult<T> result) |
CountingCompletionHandler<T> |
setHandler(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<T>> doneHandler)
Sets the completion handler.
|
void |
succeed()
Indicates that a call succeeded.
|
public void handle(org.vertx.java.core.AsyncResult<T> result)
handle in interface org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<T>>public void succeed()
public void fail(Throwable t)
t - The cause of the failure.public CountingCompletionHandler<T> setHandler(org.vertx.java.core.Handler<org.vertx.java.core.AsyncResult<T>> doneHandler)
doneHandler - An asynchronous handler to be called once all calls have completed.Copyright © 2013-2014. All Rights Reserved.