Modifier and Type | Method and Description |
---|---|
<T> CircuitBreaker |
CircuitBreaker.executeAndReport(Promise<T> resultPromise,
Handler<Promise<T>> command)
Same as
CircuitBreaker.executeAndReportWithFallback(io.vertx.rxjava.core.Promise<T>, io.vertx.core.Handler<io.vertx.rxjava.core.Promise<T>>, java.util.function.Function<java.lang.Throwable, T>) but using the circuit breaker default
fallback. |
<T> CircuitBreaker |
CircuitBreaker.executeAndReportWithFallback(Promise<T> resultPromise,
Handler<Promise<T>> command,
Function<Throwable,T> fallback)
Executes the given operation with the circuit breaker control.
|
Modifier and Type | Field and Description |
---|---|
static TypeArg<Promise> |
Promise.__TYPE_ARG |
Modifier and Type | Method and Description |
---|---|
static <T> Promise<T> |
Promise.failedPromise(String failureMessage)
Create a failed promise with the specified
failureMessage . |
static <T> Promise<T> |
Promise.failedPromise(Throwable cause)
Create a failed promise with the specified failure
cause . |
static <T> Promise<T> |
Promise.newInstance(Promise arg) |
static <T> Promise<T> |
Promise.newInstance(Promise arg,
TypeArg<T> __typeArg_T) |
static <T> Promise<T> |
Promise.promise()
Create a promise that hasn't completed yet
|
static <T> Promise<T> |
Promise.succeededPromise()
Create a succeeded promise with a
null result |
static <T> Promise<T> |
Promise.succeededPromise(T result)
Created a succeeded promise with the specified
result . |
Modifier and Type | Method and Description |
---|---|
<T> void |
WorkerExecutor.executeBlocking(Handler<Promise<T>> blockingCodeHandler,
boolean ordered,
Handler<AsyncResult<T>> resultHandler)
Safely execute some blocking code.
|
<T> void |
Vertx.executeBlocking(Handler<Promise<T>> blockingCodeHandler,
boolean ordered,
Handler<AsyncResult<T>> resultHandler)
Safely execute some blocking code.
|
<T> void |
Context.executeBlocking(Handler<Promise<T>> blockingCodeHandler,
boolean ordered,
Handler<AsyncResult<T>> resultHandler)
Safely execute some blocking code.
|
<T> void |
WorkerExecutor.executeBlocking(Handler<Promise<T>> blockingCodeHandler,
Handler<AsyncResult<T>> resultHandler)
|
<T> void |
Vertx.executeBlocking(Handler<Promise<T>> blockingCodeHandler,
Handler<AsyncResult<T>> resultHandler)
|
<T> void |
Context.executeBlocking(Handler<Promise<T>> blockingCodeHandler,
Handler<AsyncResult<T>> resultHandler)
|
<T> rx.Observable<T> |
WorkerExecutor.executeBlockingObservable(Handler<Promise<T>> blockingCodeHandler)
|
<T> rx.Observable<T> |
Vertx.executeBlockingObservable(Handler<Promise<T>> blockingCodeHandler)
Deprecated.
|
<T> rx.Observable<T> |
Context.executeBlockingObservable(Handler<Promise<T>> blockingCodeHandler)
Deprecated.
|
<T> rx.Observable<T> |
WorkerExecutor.executeBlockingObservable(Handler<Promise<T>> blockingCodeHandler,
boolean ordered)
|
<T> rx.Observable<T> |
Vertx.executeBlockingObservable(Handler<Promise<T>> blockingCodeHandler,
boolean ordered)
Deprecated.
|
<T> rx.Observable<T> |
Context.executeBlockingObservable(Handler<Promise<T>> blockingCodeHandler,
boolean ordered)
Deprecated.
|
static <T> Future<T> |
Future.future(Handler<Promise<T>> handler)
Create a future that hasn't completed yet and that is passed to the
handler before it is returned. |
<T> rx.Single<T> |
WorkerExecutor.rxExecuteBlocking(Handler<Promise<T>> blockingCodeHandler)
|
<T> rx.Single<T> |
Vertx.rxExecuteBlocking(Handler<Promise<T>> blockingCodeHandler)
|
<T> rx.Single<T> |
Context.rxExecuteBlocking(Handler<Promise<T>> blockingCodeHandler)
|
<T> rx.Single<T> |
WorkerExecutor.rxExecuteBlocking(Handler<Promise<T>> blockingCodeHandler,
boolean ordered)
Safely execute some blocking code.
|
<T> rx.Single<T> |
Vertx.rxExecuteBlocking(Handler<Promise<T>> blockingCodeHandler,
boolean ordered)
Safely execute some blocking code.
|
<T> rx.Single<T> |
Context.rxExecuteBlocking(Handler<Promise<T>> blockingCodeHandler,
boolean ordered)
Safely execute some blocking code.
|
Modifier and Type | Method and Description |
---|---|
void |
ServerWebSocket.setHandshake(Promise<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. |
Modifier and Type | Class and Description |
---|---|
class |
BaseBridgeEvent
Represents an event that occurs on the event bus bridge.
|
Modifier and Type | Class and Description |
---|---|
class |
BridgeEvent
Represents an event that occurs on the event bus bridge.
|
Modifier and Type | Method and Description |
---|---|
HealthCheckHandler |
HealthCheckHandler.register(String name,
Handler<Promise<Status>> procedure)
Registers a health check procedure.
|
HealthChecks |
HealthChecks.register(String name,
Handler<Promise<Status>> procedure)
Registers a health check procedure.
|
HealthCheckHandler |
HealthCheckHandler.register(String name,
long timeout,
Handler<Promise<Status>> procedure)
Registers a health check procedure.
|
HealthChecks |
HealthChecks.register(String name,
long timeout,
Handler<Promise<Status>> procedure)
Registers a health check procedure.
|
Modifier and Type | Method and Description |
---|---|
void |
Completion.resolve(Promise<T> future)
Completes the future upon completion, otherwise fails it.
|
void |
TestCompletion.resolve(Promise<Void> future)
Completes the future upon completion, otherwise fails it.
|
void |
Async.resolve(Promise<Void> future)
Completes the future upon completion, otherwise fails it.
|
Modifier and Type | Method and Description |
---|---|
void |
ServiceExporter.init(Vertx vertx,
ServicePublisher publisher,
JsonObject configuration,
Promise<Void> future)
Starts the exporter.
|
void |
ServiceImporter.start(Vertx vertx,
ServicePublisher publisher,
JsonObject configuration,
Promise<Void> future)
Starts the importer.
|
Copyright © 2019 Eclipse. All rights reserved.