Class Async
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate
An asynchronous exit point for a test.
NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.
-
Field Summary
FieldsFields inherited from class Completion
__typeArg_0 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcomplete()Signals the asynchronous operation is done, this method must be called with a count greater than0, otherwise it throws anIllegalStateExceptionto signal the error.intcount()voidCount down the async.booleanvoidhandler(Handler<AsyncResult<Void>> completionHandler) Completion handler to receive a completion signal when this completions completes.inthashCode()static AsyncnewInstance(Async arg) voidCompletes the future upon completion, otherwise fails it.toString()Methods inherited from class Completion
await, await, awaitSuccess, awaitSuccess, isCompleted, isFailed, isSucceeded, newInstance, newInstance
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
Async
-
Async
-
-
Method Details
-
toString
- Overrides:
toStringin classCompletion<Void>
-
equals
- Overrides:
equalsin classCompletion<Void>
-
hashCode
public int hashCode()- Overrides:
hashCodein classCompletion<Void>
-
getDelegate
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate- Overrides:
getDelegatein classCompletion<Void>
-
resolve
Completes the future upon completion, otherwise fails it.- Overrides:
resolvein classCompletion<Void>- Parameters:
future- the future to resolve
-
count
public int count()- Returns:
- the current count
-
countDown
public void countDown()Count down the async. -
complete
public void complete()Signals the asynchronous operation is done, this method must be called with a count greater than0, otherwise it throws anIllegalStateExceptionto signal the error. -
handler
Completion handler to receive a completion signal when this completions completes.- Overrides:
handlerin classCompletion<Void>- Parameters:
completionHandler- the completion handler
-
newInstance
-