public class ExecuteEventbusStringResponse extends ExecuteEventbusString
chain, delay, excecuteAsyncEventBusAndReply, onFailureRespond, stringSuppliercircuitBreakerTimeout, deliveryOptions, errorHandler, errorMethodHandler, excecuteEventBusAndReply, failure, message, methodId, retryCount, stringConsumer, timeout, vxmsShared| Constructor and Description |
|---|
ExecuteEventbusStringResponse(String methodId,
VxmsShared vxmsShared,
Throwable failure,
Consumer<Throwable> errorMethodHandler,
io.vertx.core.eventbus.Message<Object> message,
List<BlockingExecutionStep> chain,
ThrowableSupplier<String> stringSupplier)
The constructor to pass minimal needed members
|
ExecuteEventbusStringResponse(String methodId,
VxmsShared vxmsShared,
Throwable failure,
Consumer<Throwable> errorMethodHandler,
io.vertx.core.eventbus.Message<Object> message,
List<BlockingExecutionStep> chain,
ThrowableSupplier<String> stringSupplier,
ExecuteEventbusStringCall excecuteAsyncEventBusAndReply,
Consumer<Throwable> errorHandler,
ThrowableFunction<Throwable,String> 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 |
|---|---|
ExecuteEventbusStringResponse |
delay(long delay)
Defines the delay (in ms) between the createResponse retries (on error).
|
ExecuteEventbusStringResponse |
onError(Consumer<Throwable> errorHandler)
intermediate error handler which will be called on each error (at least 1 time, in case on N
retries... up to N times)
|
ExecuteEventbusString |
onFailureRespond(ThrowableFunction<Throwable,String> onFailureRespond)
defines an action for errors in byte responses, you can handle the error and return an
alternate createResponse value
|
ExecuteEventbusStringCircuitBreaker |
retry(int retryCount)
retry operation on error
|
ExecuteEventbusStringResponse |
timeout(long timeout)
Defines how long a method can be executed before aborted.
|
execute, executefail, respondexecuteBlocking, executeBlockingStep, executeStep, getBlockingResultHandler, getBlockingResultHandler, getResultHandlerpublic ExecuteEventbusStringResponse(String methodId, VxmsShared vxmsShared, Throwable failure, Consumer<Throwable> errorMethodHandler, io.vertx.core.eventbus.Message<Object> message, List<BlockingExecutionStep> chain, ThrowableSupplier<String> stringSupplier, ExecuteEventbusStringCall excecuteAsyncEventBusAndReply, Consumer<Throwable> errorHandler, ThrowableFunction<Throwable,String> onFailureRespond, io.vertx.core.eventbus.DeliveryOptions deliveryOptions, int retryCount, long timeout, long delay, long circuitBreakerTimeout)
methodId - the method identifiervxmsShared - the vxmsShared instance, containing the Vertx instance and other shared
objects per instancefailure - the failure thrown while task executionerrorMethodHandler - the error handlermessage - the message to responde tochain - the execution chainstringSupplier - 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 serverOptionsretryCount - 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 ExecuteEventbusStringResponse(String methodId, VxmsShared vxmsShared, Throwable failure, Consumer<Throwable> errorMethodHandler, io.vertx.core.eventbus.Message<Object> message, List<BlockingExecutionStep> chain, ThrowableSupplier<String> stringSupplier)
methodId - the method identifiervxmsShared - the vxmsShared instance, containing the Vertx instance and other shared
objects per instancefailure - the failure thrown while task executionerrorMethodHandler - the error handlermessage - the message to responde tochain - the execution chainstringSupplier - the supplier, producing the byte responsepublic ExecuteEventbusString onFailureRespond(ThrowableFunction<Throwable,String> onFailureRespond)
onFailureRespond - the handler (function) to execute on errorExecuteEventbusStringpublic ExecuteEventbusStringResponse onError(Consumer<Throwable> errorHandler)
errorHandler - the handler to be executed on each errorExecuteEventbusStringResponsepublic ExecuteEventbusStringCircuitBreaker retry(int retryCount)
retryCount - the amount of retries before failing the operationExecuteEventbusStringCircuitBreakerpublic ExecuteEventbusStringResponse timeout(long timeout)
timeout - time to wait in msExecuteEventbusStringResponsepublic ExecuteEventbusStringResponse delay(long delay)
delay - the delay time in ms before retryExecuteEventbusStringResponseCopyright © 2018. All rights reserved.