public class ExecuteEventbusByteResponse extends ExecuteEventbusByte
byteSupplier, delay, excecuteAsyncEventBusAndReply, onFailureRespondbyteConsumer, circuitBreakerTimeout, deliveryOptions, errorHandler, errorMethodHandler, excecuteEventBusAndReply, failure, message, methodId, retryCount, timeout, vertx| Constructor and Description |
|---|
ExecuteEventbusByteResponse(String methodId,
io.vertx.core.Vertx vertx,
Throwable failure,
java.util.function.Consumer<Throwable> errorMethodHandler,
io.vertx.core.eventbus.Message<Object> message,
ThrowableSupplier<byte[]> byteSupplier,
ExecuteEventbusByteCallBlocking excecuteAsyncEventBusAndReply,
java.util.function.Consumer<Throwable> errorHandler,
ThrowableFunction<Throwable,byte[]> onFailureRespond,
io.vertx.core.eventbus.DeliveryOptions deliveryOptions,
int retryCount,
long timeout,
long delay,
long circuitBreakerTimeout)
The constructor to pass all needed members
|
| Modifier and Type | Method and Description |
|---|---|
ExecuteEventbusByteResponse |
delay(long delay)
Defines the delay (in ms) between the createResponse retries.
|
ExecuteEventbusByteResponse |
onError(java.util.function.Consumer<Throwable> errorHandler)
Will be executed on each error
|
ExecuteEventbusByte |
onFailureRespond(ThrowableFunction<Throwable,byte[]> onFailureRespond)
defines an action for errors in byte responses, you can handle the error and return an alternate createResponse value
|
ExecuteEventbusByteCircuitBreaker |
retry(int retryCount)
retry operation on error
|
ExecuteEventbusByteResponse |
timeout(long timeout)
Defines how long a method can be executed before aborted.
|
execute, executefail, respondpublic ExecuteEventbusByteResponse(String methodId, io.vertx.core.Vertx vertx, Throwable failure, java.util.function.Consumer<Throwable> errorMethodHandler, io.vertx.core.eventbus.Message<Object> message, ThrowableSupplier<byte[]> byteSupplier, ExecuteEventbusByteCallBlocking excecuteAsyncEventBusAndReply, java.util.function.Consumer<Throwable> errorHandler, ThrowableFunction<Throwable,byte[]> onFailureRespond, io.vertx.core.eventbus.DeliveryOptions deliveryOptions, int retryCount, long timeout, long delay, long circuitBreakerTimeout)
methodId - the method identifiervertx - the vertx instancefailure - the failure thrown while task executionerrorMethodHandler - the error handlermessage - the message to responde tobyteSupplier - the supplier, producing the byte responseexcecuteAsyncEventBusAndReply - the response of an event-bus call which is passed to the fluent APIerrorHandler - the error handleronFailureRespond - the consumer that takes a Future with the alternate response value in case of failuredeliveryOptions - the response delivery optionsretryCount - the amount of retries before failure execution is triggeredtimeout - the amount of time before the execution will be aborteddelay - the delay time in ms between an execution error and the retrycircuitBreakerTimeout - the amount of time before the circuit breaker closed againpublic ExecuteEventbusByte onFailureRespond(ThrowableFunction<Throwable,byte[]> onFailureRespond)
onFailureRespond - the handler (function) to execute on errorExecuteEventbusBytepublic ExecuteEventbusByteResponse onError(java.util.function.Consumer<Throwable> errorHandler)
errorHandler - the handler to be executed on each errorExecuteEventbusByteResponsepublic ExecuteEventbusByteCircuitBreaker retry(int retryCount)
retryCount - the amount of retries before failing the operationExecuteEventbusByteResponsepublic ExecuteEventbusByteResponse timeout(long timeout)
timeout - time to wait in msExecuteEventbusByteResponsepublic ExecuteEventbusByteResponse delay(long delay)
delay - the delay time in ms before retryExecuteEventbusByteResponseCopyright © 2017. All rights reserved.