Modifier and Type | Method and Description |
---|---|
Future<Schema> |
SchemaRouter.resolveRef(JsonPointer pointer,
JsonPointer scope,
SchemaParser schemaParser)
Resolve $ref.
|
Future<Void> |
Schema.validateAsync(Object json)
Validate the json performing an asynchronous validation.
|
Modifier and Type | Method and Description |
---|---|
Future<ResultSet> |
ResultSet.fetchNextPage() |
Future<com.datastax.oss.driver.api.core.metadata.Metadata> |
CassandraClient.metadata()
Get for the session.
|
Modifier and Type | Class and Description |
---|---|
class |
CompositeFuture
The composite future wraps a list of
futures , it is useful when several futures
needs to be coordinated. |
Modifier and Type | Field and Description |
---|---|
static TypeArg<Future> |
Future.__TYPE_ARG |
Modifier and Type | Method and Description |
---|---|
Future<Void> |
WorkerExecutor.close()
Close the executor.
|
<U> Future<U> |
CompositeFuture.compose(Function<CompositeFuture,Future<U>> mapper)
Compose this future with a
mapper function. |
<U> Future<U> |
CompositeFuture.compose(Function<CompositeFuture,Future<U>> successMapper,
Function<Throwable,Future<U>> failureMapper)
Compose this future with a
successMapper and failureMapper functions. |
<U> Future<U> |
Future.compose(Function<T,Future<U>> mapper)
Compose this future with a
mapper function. |
<U> Future<U> |
Future.compose(Function<T,Future<U>> successMapper,
Function<Throwable,Future<U>> failureMapper)
Compose this future with a
successMapper and failureMapper functions. |
static <T> Future<T> |
Future.failedFuture(String failureMessage)
Create a failed future with the specified failure message.
|
static <T> Future<T> |
Future.failedFuture(Throwable t)
Create a failed future with the specified failure cause.
|
<U> Future<U> |
CompositeFuture.flatMap(Function<CompositeFuture,Future<U>> mapper)
|
<U> Future<U> |
Future.flatMap(Function<T,Future<U>> mapper)
|
Future<T> |
Promise.future() |
static <T> Future<T> |
Future.future(io.vertx.core.Handler<Promise<T>> handler)
Create a future that hasn't completed yet and that is passed to the
handler before it is returned. |
<U> Future<U> |
CompositeFuture.map(Function<CompositeFuture,U> mapper)
Apply a
mapper function on this future. |
<U> Future<U> |
Future.map(Function<T,U> mapper)
Apply a
mapper function on this future. |
<V> Future<V> |
Future.map(V value)
Map the result of a future to a specific
value . |
<V> Future<V> |
Future.mapEmpty()
Map the result of a future to
null . |
static <T> Future<T> |
Future.newInstance(io.vertx.core.Future arg) |
static <T> Future<T> |
Future.newInstance(io.vertx.core.Future arg,
TypeArg<T> __typeArg_T) |
Future<T> |
Future.onComplete()
Add a handler to be notified of the result.
|
Future<T> |
Future.onComplete(io.vertx.core.Handler<io.vertx.core.AsyncResult<T>> handler)
Add a handler to be notified of the result.
|
Future<T> |
Future.onFailure(io.vertx.core.Handler<Throwable> handler)
Add a handler to be notified of the failed result.
|
Future<T> |
Future.onSuccess(io.vertx.core.Handler<T> handler)
Add a handler to be notified of the succeeded result.
|
Future<CompositeFuture> |
CompositeFuture.otherwise(CompositeFuture value)
Map the failure of a future to a specific
value . |
Future<CompositeFuture> |
CompositeFuture.otherwise(Function<Throwable,CompositeFuture> mapper)
Apply a
mapper function on this future. |
Future<T> |
Future.otherwise(Function<Throwable,T> mapper)
Apply a
mapper function on this future. |
Future<T> |
Future.otherwise(T value)
Map the failure of a future to a specific
value . |
Future<T> |
Future.otherwiseEmpty()
Map the failure of a future to
null . |
Future<CompositeFuture> |
CompositeFuture.otherwiseEmpty()
Map the failure of a future to
null . |
Future<CompositeFuture> |
CompositeFuture.recover(Function<Throwable,Future<CompositeFuture>> mapper)
Handles a failure of this Future by returning the result of another Future.
|
Future<T> |
Future.recover(Function<Throwable,Future<T>> mapper)
Handles a failure of this Future by returning the result of another Future.
|
static <T> Future<T> |
Future.succeededFuture()
Create a succeeded future with a null result
|
static <T> Future<T> |
Future.succeededFuture(T result)
Created a succeeded future with the specified result.
|
Modifier and Type | Method and Description |
---|---|
static CompositeFuture |
CompositeFuture.all(List<Future> futures)
Like
CompositeFuture.all(io.vertx.rxjava.core.Future<T1>, io.vertx.rxjava.core.Future<T2>) but with a list of futures. |
static CompositeFuture |
CompositeFuture.any(List<Future> futures)
Like
CompositeFuture.any(io.vertx.rxjava.core.Future<T1>, io.vertx.rxjava.core.Future<T2>) but with a list of futures. |
<U> Future<U> |
CompositeFuture.compose(Function<CompositeFuture,Future<U>> mapper)
Compose this future with a
mapper function. |
<U> Future<U> |
CompositeFuture.compose(Function<CompositeFuture,Future<U>> successMapper,
Function<Throwable,Future<U>> failureMapper)
Compose this future with a
successMapper and failureMapper functions. |
<U> Future<U> |
CompositeFuture.compose(Function<CompositeFuture,Future<U>> successMapper,
Function<Throwable,Future<U>> failureMapper)
Compose this future with a
successMapper and failureMapper functions. |
<U> Future<U> |
Future.compose(Function<T,Future<U>> mapper)
Compose this future with a
mapper function. |
<U> Future<U> |
Future.compose(Function<T,Future<U>> successMapper,
Function<Throwable,Future<U>> failureMapper)
Compose this future with a
successMapper and failureMapper functions. |
<U> Future<U> |
Future.compose(Function<T,Future<U>> successMapper,
Function<Throwable,Future<U>> failureMapper)
Compose this future with a
successMapper and failureMapper functions. |
<U> Future<U> |
CompositeFuture.flatMap(Function<CompositeFuture,Future<U>> mapper)
|
<U> Future<U> |
Future.flatMap(Function<T,Future<U>> mapper)
|
static CompositeFuture |
CompositeFuture.join(List<Future> futures)
Like
CompositeFuture.join(io.vertx.rxjava.core.Future<T1>, io.vertx.rxjava.core.Future<T2>) but with a list of futures. |
Future<CompositeFuture> |
CompositeFuture.recover(Function<Throwable,Future<CompositeFuture>> mapper)
Handles a failure of this Future by returning the result of another Future.
|
Future<T> |
Future.recover(Function<Throwable,Future<T>> mapper)
Handles a failure of this Future by returning the result of another Future.
|
Modifier and Type | Class and Description |
---|---|
class |
HttpClientRequest
Represents a client-side HTTP request.
|
Modifier and Type | Method and Description |
---|---|
Future<Void> |
HttpConnection.close()
Close the connection and all the currently active streams.
|
<U> Future<U> |
HttpClientRequest.compose(Function<HttpClientResponse,Future<U>> mapper)
Compose this future with a
mapper function. |
<U> Future<U> |
HttpClientRequest.compose(Function<HttpClientResponse,Future<U>> successMapper,
Function<Throwable,Future<U>> failureMapper)
Compose this future with a
successMapper and failureMapper functions. |
<U> Future<U> |
HttpClientRequest.flatMap(Function<HttpClientResponse,Future<U>> mapper)
|
<U> Future<U> |
HttpClientRequest.map(Function<HttpClientResponse,U> mapper)
Apply a
mapper function on this future. |
Future<HttpClientResponse> |
HttpClientRequest.otherwise(Function<Throwable,HttpClientResponse> mapper)
Apply a
mapper function on this future. |
Future<HttpClientResponse> |
HttpClientRequest.otherwise(HttpClientResponse value)
Map the failure of a future to a specific
value . |
Future<HttpClientResponse> |
HttpClientRequest.otherwiseEmpty()
Map the failure of a future to
null . |
Future<HttpClientResponse> |
HttpClientRequest.recover(Function<Throwable,Future<HttpClientResponse>> mapper)
Handles a failure of this Future by returning the result of another Future.
|
Modifier and Type | Method and Description |
---|---|
rx.Single<Integer> |
ServerWebSocket.rxSetHandshake(Future<Integer> future)
Set an asynchronous result for the handshake, upon completion of the specified
future , the
WebSocket will either be
accepted when the future succeeds with the HTTP status code
rejected when the future is succeeds with an HTTP status code different than
rejected when the future fails with the HTTP status code 500
The provided future might be completed by the WebSocket itself, e.g calling the ServerWebSocket.close(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>) method
will try to accept the handshake and close the WebSocket afterward. |
void |
ServerWebSocket.setHandshake(Future<Integer> future)
Set an asynchronous result for the handshake, upon completion of the specified
future , the
WebSocket will either be
accepted when the future succeeds with the HTTP status code
rejected when the future is succeeds with an HTTP status code different than
rejected when the future fails with the HTTP status code 500
The provided future might be completed by the WebSocket itself, e.g calling the ServerWebSocket.close(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>) method
will try to accept the handshake and close the WebSocket afterward. |
void |
ServerWebSocket.setHandshake(Future<Integer> future,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Integer>> handler)
Set an asynchronous result for the handshake, upon completion of the specified
future , the
WebSocket will either be
accepted when the future succeeds with the HTTP status code
rejected when the future is succeeds with an HTTP status code different than
rejected when the future fails with the HTTP status code 500
The provided future might be completed by the WebSocket itself, e.g calling the ServerWebSocket.close(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>) method
will try to accept the handshake and close the WebSocket afterward. |
Modifier and Type | Method and Description |
---|---|
<U> Future<U> |
HttpClientRequest.compose(Function<HttpClientResponse,Future<U>> mapper)
Compose this future with a
mapper function. |
<U> Future<U> |
HttpClientRequest.compose(Function<HttpClientResponse,Future<U>> successMapper,
Function<Throwable,Future<U>> failureMapper)
Compose this future with a
successMapper and failureMapper functions. |
<U> Future<U> |
HttpClientRequest.compose(Function<HttpClientResponse,Future<U>> successMapper,
Function<Throwable,Future<U>> failureMapper)
Compose this future with a
successMapper and failureMapper functions. |
<U> Future<U> |
HttpClientRequest.flatMap(Function<HttpClientResponse,Future<U>> mapper)
|
Future<HttpClientResponse> |
HttpClientRequest.recover(Function<Throwable,Future<HttpClientResponse>> mapper)
Handles a failure of this Future by returning the result of another Future.
|
HttpClient |
HttpClient.redirectHandler(Function<HttpClientResponse,Future<io.vertx.core.http.RequestOptions>> handler)
Set a redirect handler for the http client.
|
Modifier and Type | Method and Description |
---|---|
Future<Boolean> |
BaseBridgeEvent.future() |
Modifier and Type | Method and Description |
---|---|
Future<Boolean> |
BridgeEvent.future() |
Modifier and Type | Method and Description |
---|---|
Future<Void> |
RoutingContext.end()
Shortcut to the response end.
|
Future<Void> |
RoutingContext.end(Buffer buffer)
Shortcut to the response end.
|
Future<Void> |
RoutingContext.end(String chunk)
Shortcut to the response end.
|
Future<Void> |
RoutingContext.json(Object json)
Encode an Object to JSON and end the request.
|
Future<Void> |
RoutingContext.redirect(String url)
Perform a 302 redirect to
url . |
Modifier and Type | Method and Description |
---|---|
Future<Boolean> |
BridgeEvent.future() |
Modifier and Type | Method and Description |
---|---|
Future<Void> |
KafkaAdminClient.close()
Close the admin client
|
Future<Void> |
KafkaAdminClient.close(long timeout)
Close the admin client
|
Modifier and Type | Method and Description |
---|---|
Future<Void> |
Transaction.completion()
Return the transaction completion
Future that
succeeds when the transaction commits
fails with TransactionRollbackException when the transaction rollbacks
|
Modifier and Type | Method and Description |
---|---|
<T> rx.Single<T> |
Pool.rxWithTransaction(Function<SqlClient,Future<T>> function)
Execute the given
function within a transaction. |
<T> void |
Pool.withTransaction(Function<SqlClient,Future<T>> function)
Execute the given
function within a transaction. |
<T> void |
Pool.withTransaction(Function<SqlClient,Future<T>> function,
io.vertx.core.Handler<io.vertx.core.AsyncResult<T>> handler)
Execute the given
function within a transaction. |
Copyright © 2020 Eclipse. All rights reserved.