Package io.vertx.rxjava3.ext.unit
Class Async
- java.lang.Object
-
- io.vertx.rxjava3.ext.unit.Completion<Void>
-
- io.vertx.rxjava3.ext.unit.Async
-
public class Async extends Completion<Void>
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
Fields Modifier and Type Field Description static io.vertx.lang.rx.TypeArg<Async>
__TYPE_ARG
-
Fields inherited from class io.vertx.rxjava3.ext.unit.Completion
__typeArg_0
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
complete()
Signals the asynchronous operation is done, this method must be called with a count greater than0
, otherwise it throws anIllegalStateException
to signal the error.int
count()
void
countDown()
Count down the async.boolean
equals(Object o)
Async
getDelegate()
void
handler(Handler<AsyncResult<Void>> completionHandler)
Completion handler to receive a completion signal when this completions completes.int
hashCode()
static Async
newInstance(Async arg)
void
resolve(Promise<Void> future)
Completes the future upon completion, otherwise fails it.String
toString()
-
Methods inherited from class io.vertx.rxjava3.ext.unit.Completion
await, await, awaitSuccess, awaitSuccess, isCompleted, isFailed, isSucceeded, newInstance, newInstance
-
-
-
-
Field Detail
-
__TYPE_ARG
public static final io.vertx.lang.rx.TypeArg<Async> __TYPE_ARG
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toString
in classCompletion<Void>
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classCompletion<Void>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classCompletion<Void>
-
getDelegate
public Async getDelegate()
- Overrides:
getDelegate
in classCompletion<Void>
-
resolve
public void resolve(Promise<Void> future)
Completes the future upon completion, otherwise fails it.- Overrides:
resolve
in 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 anIllegalStateException
to signal the error.
-
handler
public void handler(Handler<AsyncResult<Void>> completionHandler)
Completion handler to receive a completion signal when this completions completes.- Overrides:
handler
in classCompletion<Void>
- Parameters:
completionHandler
- the completion handler
-
-