Uses of Interface
io.vertx.core.AsyncResult
-
-
Uses of AsyncResult in io.vertx.config.spi.utils
Method parameters in io.vertx.config.spi.utils with type arguments of type AsyncResult Modifier and Type Method Description void
FileSet. buildConfiguration(List<File> files, Handler<AsyncResult<JsonObject>> handler)
Iterates over the given set of files, and for each matching file, computes the resulting configuration. -
Uses of AsyncResult in io.vertx.config.vault.client
Methods in io.vertx.config.vault.client that return AsyncResult Modifier and Type Method Description static <T> AsyncResult<T>
VaultException. toFailure(String message)
-
Uses of AsyncResult in io.vertx.core
Subinterfaces of AsyncResult in io.vertx.core Modifier and Type Interface Description interface
CompositeFuture
The composite future wraps a list offutures
, it is useful when several futures needs to be coordinated.interface
Future<T>
Represents the result of an action that may, or may not, have occurred yet.interface
Timer
A timer task that can be used as a future.Methods in io.vertx.core that return AsyncResult Modifier and Type Method Description default <U> AsyncResult<U>
AsyncResult. map(java.util.function.Function<? super T,U> mapper)
Apply amapper
function on this async result.default <V> AsyncResult<V>
AsyncResult. map(V value)
Map the result of this async result to a specificvalue
.default <V> AsyncResult<V>
AsyncResult. mapEmpty()
Map the result of this async result tonull
.default AsyncResult<T>
AsyncResult. otherwise(java.util.function.Function<Throwable,T> mapper)
Apply amapper
function on this async result.default AsyncResult<T>
AsyncResult. otherwise(T value)
Map the failure of this async result to a specificvalue
.default AsyncResult<T>
AsyncResult. otherwiseEmpty()
Map the failure of this async result tonull
.Methods in io.vertx.core with parameters of type AsyncResult Modifier and Type Method Description default void
Promise. handle(AsyncResult<T> asyncResult)
Succeed or fail this promise with theAsyncResult
event.Method parameters in io.vertx.core with type arguments of type AsyncResult Modifier and Type Method Description default Future<T>
Future. andThen(Handler<AsyncResult<T>> handler)
Invokes the givenhandler
upon completion.CompositeFuture
CompositeFuture. onComplete(Handler<AsyncResult<CompositeFuture>> handler)
Future<T>
Future. onComplete(Handler<AsyncResult<T>> handler)
Add a handler to be notified of the result.<U> Future<U>
Future. transform(java.util.function.Function<AsyncResult<T>,Future<U>> mapper)
Transform this future with amapper
function. -
Uses of AsyncResult in io.vertx.ext.auth.audit
Methods in io.vertx.ext.auth.audit that return types with arguments of type AsyncResult Modifier and Type Method Description default <T> Handler<AsyncResult<T>>
SecurityAudit. auditHandlerFor(Marker marker)
-
Uses of AsyncResult in io.vertx.ext.shell.spi
Method parameters in io.vertx.ext.shell.spi with type arguments of type AsyncResult Modifier and Type Method Description void
CommandResolverFactory. resolver(Vertx vertx, Handler<AsyncResult<CommandResolver>> resolveHandler)
Obtain a command resolver for a Vert.x instance. -
Uses of AsyncResult in io.vertx.ext.unit
Methods in io.vertx.ext.unit that return types with arguments of type AsyncResult Modifier and Type Method Description <T> Handler<AsyncResult<T>>
TestContext. asyncAssertFailure()
Creates and returns a new async handler, the returned handler controls the completion of the test.<T> Handler<AsyncResult<T>>
TestContext. asyncAssertFailure(Handler<Throwable> causeHandler)
Creates and returns a new async handler, the returned handler controls the completion of the test.<T> Handler<AsyncResult<T>>
TestContext. asyncAssertSuccess()
Creates and returns a new async handler, the returned handler controls the completion of the test.<T> Handler<AsyncResult<T>>
TestContext. asyncAssertSuccess(Handler<T> resultHandler)
Creates and returns a new async handler, the returned handler controls the completion of the test.Method parameters in io.vertx.ext.unit with type arguments of type AsyncResult Modifier and Type Method Description void
Completion. handler(Handler<AsyncResult<T>> completionHandler)
Completion handler to receive a completion signal when this completions completes. -
Uses of AsyncResult in io.vertx.ext.web
Method parameters in io.vertx.ext.web with type arguments of type AsyncResult Modifier and Type Method Description int
RoutingContext. addEndHandler(Handler<AsyncResult<Void>> handler)
Add an end handler for the request/response context. -
Uses of AsyncResult in io.vertx.ext.web.client.spi
Method parameters in io.vertx.ext.web.client.spi with type arguments of type AsyncResult Modifier and Type Method Description default void
CacheStore. delete(io.vertx.ext.web.client.impl.cache.CacheKey key, Handler<AsyncResult<Void>> handler)
Delete all variations of a key from the cache.default void
CacheStore. flush(Handler<AsyncResult<Void>> handler)
Delete all entries from the cache.default void
CacheStore. get(io.vertx.ext.web.client.impl.cache.CacheKey key, Handler<AsyncResult<io.vertx.ext.web.client.impl.cache.CachedHttpResponse>> handler)
Retrieve a cached response.default void
CacheStore. set(io.vertx.ext.web.client.impl.cache.CacheKey key, io.vertx.ext.web.client.impl.cache.CachedHttpResponse response, Handler<AsyncResult<io.vertx.ext.web.client.impl.cache.CachedHttpResponse>> handler)
Add a response in the cache with the given key. -
Uses of AsyncResult in io.vertx.ext.web.codec
Method parameters in io.vertx.ext.web.codec with type arguments of type AsyncResult Modifier and Type Method Description void
BodyCodec. create(Handler<AsyncResult<BodyStream<T>>> handler)
Create theBodyStream
. -
Uses of AsyncResult in io.vertx.junit5
Methods in io.vertx.junit5 that return types with arguments of type AsyncResult Modifier and Type Method Description <T> Handler<AsyncResult<T>>
VertxTestContext. completing()
Deprecated.UseVertxTestContext.succeedingThenComplete()
instead.<T> Handler<AsyncResult<T>>
VertxTestContext. failing()
Deprecated.UseVertxTestContext.failingThenComplete()
orVertxTestContext.failing(Handler)
, for examplefailing(e -> checkpoint.flag())
,failing(e -> { more testing code })
, orfailing(e -> {})
.<T> Handler<AsyncResult<T>>
VertxTestContext. failing(Handler<Throwable> nextHandler)
Create an asynchronous result handler that expects a failure, and passes the exception to another handler.<T> Handler<AsyncResult<T>>
VertxTestContext. failingThenComplete()
Create an asynchronous result handler that expects a failure to then complete the test context.<T> Handler<AsyncResult<T>>
VertxTestContext. succeeding()
Deprecated.UseVertxTestContext.succeedingThenComplete()
orVertxTestContext.succeeding(Handler)
, for examplesucceeding(value -> checkpoint.flag())
,succeeding(value -> { more testing code })
, orsucceeding(value -> {})
.<T> Handler<AsyncResult<T>>
VertxTestContext. succeeding(Handler<T> nextHandler)
Create an asynchronous result handler that expects a success, and passes the value to another handler.<T> Handler<AsyncResult<T>>
VertxTestContext. succeedingThenComplete()
Create an asynchronous result handler that expects a success to then complete the test context. -
Uses of AsyncResult in io.vertx.lang.groovy
Methods in io.vertx.lang.groovy with parameters of type AsyncResult Modifier and Type Method Description static boolean
VertxExtensionModule. asBoolean(AsyncResult self)
Coerces anAsyncResult
as a boolean value according to Groovy-Truth. -
Uses of AsyncResult in io.vertx.reactivex
Method parameters in io.vertx.reactivex with type arguments of type AsyncResult Modifier and Type Method Description static Completable
CompletableHelper. toCompletable(java.util.function.Consumer<Handler<AsyncResult<Void>>> handler)
Returns aCompletable
that, when subscribed, uses the providedhandler
to adapt a callback-based asynchronous method.static <T> Maybe<T>
MaybeHelper. toMaybe(java.util.function.Consumer<Handler<AsyncResult<T>>> handler)
Returns aMaybe
that, when subscribed, uses the providedhandler
to adapt a callback-based asynchronous method.static <T> CompletableObserver
CompletableHelper. toObserver(Handler<AsyncResult<T>> handler)
Adapts an Vert.xHandler<AsyncResult<T>>
to an RxJava2SingleObserver
.static <T> MaybeObserver<T>
MaybeHelper. toObserver(Handler<AsyncResult<T>> handler)
Adapts an Vert.xHandler<AsyncResult<T>>
to an RxJava2MaybeObserver
.static <T> SingleObserver<T>
SingleHelper. toObserver(Handler<AsyncResult<T>> handler)
Adapts an Vert.xHandler<AsyncResult<T>>
to an RxJava2SingleObserver
.static <T> Single<T>
SingleHelper. toSingle(java.util.function.Consumer<Handler<AsyncResult<T>>> handler)
Returns aSingle
that, when subscribed, uses the providedhandler
to adapt a callback-based asynchronous method. -
Uses of AsyncResult in io.vertx.reactivex.core
Methods in io.vertx.reactivex.core with parameters of type AsyncResult Modifier and Type Method Description void
Promise. handle(AsyncResult<T> asyncResult)
Succeed or fail this promise with theAsyncResult
event. -
Uses of AsyncResult in io.vertx.reactivex.ext.auth.audit
Methods in io.vertx.reactivex.ext.auth.audit that return types with arguments of type AsyncResult Modifier and Type Method Description <T> Handler<AsyncResult<T>>
SecurityAudit. auditHandlerFor(Marker marker)
-
Uses of AsyncResult in io.vertx.reactivex.ext.bridge
Methods in io.vertx.reactivex.ext.bridge with parameters of type AsyncResult Modifier and Type Method Description void
BaseBridgeEvent. handle(AsyncResult<Boolean> asyncResult)
Succeed or fail this promise with the event. -
Uses of AsyncResult in io.vertx.reactivex.ext.eventbus.bridge.tcp
Methods in io.vertx.reactivex.ext.eventbus.bridge.tcp with parameters of type AsyncResult Modifier and Type Method Description void
BridgeEvent. handle(AsyncResult<Boolean> asyncResult)
Succeed or fail this promise with the event. -
Uses of AsyncResult in io.vertx.reactivex.ext.unit
Methods in io.vertx.reactivex.ext.unit that return types with arguments of type AsyncResult Modifier and Type Method Description <T> Handler<AsyncResult<T>>
TestContext. asyncAssertFailure()
Creates and returns a new async handler, the returned handler controls the completion of the test.<T> Handler<AsyncResult<T>>
TestContext. asyncAssertFailure(Handler<Throwable> causeHandler)
Creates and returns a new async handler, the returned handler controls the completion of the test.<T> Handler<AsyncResult<T>>
TestContext. asyncAssertSuccess()
Creates and returns a new async handler, the returned handler controls the completion of the test.<T> Handler<AsyncResult<T>>
TestContext. asyncAssertSuccess(Handler<T> resultHandler)
Creates and returns a new async handler, the returned handler controls the completion of the test.Method parameters in io.vertx.reactivex.ext.unit with type arguments of type AsyncResult Modifier and Type Method Description void
Async. handler(Handler<AsyncResult<Void>> completionHandler)
Completion handler to receive a completion signal when this completions completes.void
Completion. handler(Handler<AsyncResult<T>> completionHandler)
Completion handler to receive a completion signal when this completions completes.void
TestCompletion. handler(Handler<AsyncResult<Void>> completionHandler)
Completion handler to receive a completion signal when this completions completes. -
Uses of AsyncResult in io.vertx.reactivex.ext.web
Method parameters in io.vertx.reactivex.ext.web with type arguments of type AsyncResult Modifier and Type Method Description int
RoutingContext. addEndHandler(Handler<AsyncResult<Void>> handler)
Add an end handler for the request/response context. -
Uses of AsyncResult in io.vertx.reactivex.ext.web.handler.graphql.ws
Methods in io.vertx.reactivex.ext.web.handler.graphql.ws with parameters of type AsyncResult Modifier and Type Method Description void
ConnectionInitEvent. handle(AsyncResult<Object> asyncResult)
Succeed or fail this promise with the event. -
Uses of AsyncResult in io.vertx.reactivex.ext.web.handler.sockjs
Methods in io.vertx.reactivex.ext.web.handler.sockjs with parameters of type AsyncResult Modifier and Type Method Description void
BridgeEvent. handle(AsyncResult<Boolean> asyncResult)
Succeed or fail this promise with the event. -
Uses of AsyncResult in io.vertx.rxjava3
Method parameters in io.vertx.rxjava3 with type arguments of type AsyncResult Modifier and Type Method Description static Completable
CompletableHelper. toCompletable(java.util.function.Consumer<Handler<AsyncResult<Void>>> handler)
Returns aCompletable
that, when subscribed, uses the providedhandler
to adapt a callback-based asynchronous method.static <T> Maybe<T>
MaybeHelper. toMaybe(java.util.function.Consumer<Handler<AsyncResult<T>>> handler)
Returns aMaybe
that, when subscribed, uses the providedhandler
to adapt a callback-based asynchronous method.static <T> CompletableObserver
CompletableHelper. toObserver(Handler<AsyncResult<T>> handler)
Adapts an Vert.xHandler<AsyncResult<T>>
to an RxJava2SingleObserver
.static <T> MaybeObserver<T>
MaybeHelper. toObserver(Handler<AsyncResult<T>> handler)
Adapts an Vert.xHandler<AsyncResult<T>>
to an RxJava2MaybeObserver
.static <T> SingleObserver<T>
SingleHelper. toObserver(Handler<AsyncResult<T>> handler)
Adapts an Vert.xHandler<AsyncResult<T>>
to an RxJava2SingleObserver
.static <T> Single<T>
SingleHelper. toSingle(java.util.function.Consumer<Handler<AsyncResult<T>>> handler)
Returns aSingle
that, when subscribed, uses the providedhandler
to adapt a callback-based asynchronous method. -
Uses of AsyncResult in io.vertx.rxjava3.core
Methods in io.vertx.rxjava3.core with parameters of type AsyncResult Modifier and Type Method Description void
Promise. handle(AsyncResult<T> asyncResult)
Succeed or fail this promise with theAsyncResult
event. -
Uses of AsyncResult in io.vertx.rxjava3.ext.auth.audit
Methods in io.vertx.rxjava3.ext.auth.audit that return types with arguments of type AsyncResult Modifier and Type Method Description <T> Handler<AsyncResult<T>>
SecurityAudit. auditHandlerFor(Marker marker)
-
Uses of AsyncResult in io.vertx.rxjava3.ext.bridge
Methods in io.vertx.rxjava3.ext.bridge with parameters of type AsyncResult Modifier and Type Method Description void
BaseBridgeEvent. handle(AsyncResult<Boolean> asyncResult)
Succeed or fail this promise with the event. -
Uses of AsyncResult in io.vertx.rxjava3.ext.eventbus.bridge.tcp
Methods in io.vertx.rxjava3.ext.eventbus.bridge.tcp with parameters of type AsyncResult Modifier and Type Method Description void
BridgeEvent. handle(AsyncResult<Boolean> asyncResult)
Succeed or fail this promise with the event. -
Uses of AsyncResult in io.vertx.rxjava3.ext.unit
Methods in io.vertx.rxjava3.ext.unit that return types with arguments of type AsyncResult Modifier and Type Method Description <T> Handler<AsyncResult<T>>
TestContext. asyncAssertFailure()
Creates and returns a new async handler, the returned handler controls the completion of the test.<T> Handler<AsyncResult<T>>
TestContext. asyncAssertFailure(Handler<Throwable> causeHandler)
Creates and returns a new async handler, the returned handler controls the completion of the test.<T> Handler<AsyncResult<T>>
TestContext. asyncAssertSuccess()
Creates and returns a new async handler, the returned handler controls the completion of the test.<T> Handler<AsyncResult<T>>
TestContext. asyncAssertSuccess(Handler<T> resultHandler)
Creates and returns a new async handler, the returned handler controls the completion of the test.Method parameters in io.vertx.rxjava3.ext.unit with type arguments of type AsyncResult Modifier and Type Method Description void
Async. handler(Handler<AsyncResult<Void>> completionHandler)
Completion handler to receive a completion signal when this completions completes.void
Completion. handler(Handler<AsyncResult<T>> completionHandler)
Completion handler to receive a completion signal when this completions completes.void
TestCompletion. handler(Handler<AsyncResult<Void>> completionHandler)
Completion handler to receive a completion signal when this completions completes. -
Uses of AsyncResult in io.vertx.rxjava3.ext.web
Method parameters in io.vertx.rxjava3.ext.web with type arguments of type AsyncResult Modifier and Type Method Description int
RoutingContext. addEndHandler(Handler<AsyncResult<Void>> handler)
Add an end handler for the request/response context. -
Uses of AsyncResult in io.vertx.rxjava3.ext.web.handler.graphql.ws
Methods in io.vertx.rxjava3.ext.web.handler.graphql.ws with parameters of type AsyncResult Modifier and Type Method Description void
ConnectionInitEvent. handle(AsyncResult<Object> asyncResult)
Succeed or fail this promise with the event. -
Uses of AsyncResult in io.vertx.rxjava3.ext.web.handler.sockjs
Methods in io.vertx.rxjava3.ext.web.handler.sockjs with parameters of type AsyncResult Modifier and Type Method Description void
BridgeEvent. handle(AsyncResult<Boolean> asyncResult)
Succeed or fail this promise with the event. -
Uses of AsyncResult in io.vertx.servicediscovery.backend.redis
Method parameters in io.vertx.servicediscovery.backend.redis with type arguments of type AsyncResult Modifier and Type Method Description void
RedisBackendService. getRecord(String uuid, Handler<AsyncResult<Record>> resultHandler)
void
RedisBackendService. getRecords(Handler<AsyncResult<List<Record>>> resultHandler)
void
RedisBackendService. remove(Record record, Handler<AsyncResult<Record>> resultHandler)
void
RedisBackendService. remove(String uuid, Handler<AsyncResult<Record>> resultHandler)
void
RedisBackendService. store(Record record, Handler<AsyncResult<Record>> resultHandler)
void
RedisBackendService. update(Record record, Handler<AsyncResult<Void>> resultHandler)
-
Uses of AsyncResult in io.vertx.servicediscovery.spi
Method parameters in io.vertx.servicediscovery.spi with type arguments of type AsyncResult Modifier and Type Method Description void
ServiceDiscoveryBackend. getRecord(String uuid, Handler<AsyncResult<Record>> resultHandler)
Get the record with the given uuid.void
ServiceDiscoveryBackend. getRecords(Handler<AsyncResult<List<Record>>> resultHandler)
Gets all the recordsvoid
ServiceDiscoveryBackend. remove(Record record, Handler<AsyncResult<Record>> resultHandler)
Removes a record.void
ServiceDiscoveryBackend. remove(String uuid, Handler<AsyncResult<Record>> resultHandler)
Removes a records based on its UUID.void
ServiceDiscoveryBackend. store(Record record, Handler<AsyncResult<Record>> resultHandler)
Stores a record.void
ServiceDiscoveryBackend. update(Record record, Handler<AsyncResult<Void>> resultHandler)
Updates a record -
Uses of AsyncResult in io.vertx.serviceproxy
Methods in io.vertx.serviceproxy that return types with arguments of type AsyncResult Modifier and Type Method Description static <T> Handler<AsyncResult<T>>
HelperUtils. createHandler(Message msg, boolean includeDebugInfo)
static Handler<AsyncResult<List<Character>>>
HelperUtils. createListCharHandler(Message msg, boolean includeDebugInfo)
static <T> Handler<AsyncResult<List<T>>>
HelperUtils. createListHandler(Message msg, boolean includeDebugInfo)
static Handler<AsyncResult<Map<String,Character>>>
HelperUtils. createMapCharHandler(Message msg, boolean includeDebugInfo)
static <T> Handler<AsyncResult<Map<String,T>>>
HelperUtils. createMapHandler(Message msg, boolean includeDebugInfo)
static Handler<AsyncResult<Set<Character>>>
HelperUtils. createSetCharHandler(Message msg, boolean includeDebugInfo)
static <T> Handler<AsyncResult<Set<T>>>
HelperUtils. createSetHandler(Message msg, boolean includeDebugInfo)
-