public class ExecuteEventbusString extends ExecuteEventbusString
| Modifier and Type | Field and Description |
|---|---|
protected List<BlockingExecutionStep> |
chain |
protected long |
delay |
protected ExecuteEventbusStringCall |
excecuteAsyncEventBusAndReply |
protected ThrowableFunction<Throwable,String> |
onFailureRespond |
protected ThrowableSupplier<String> |
stringSupplier |
circuitBreakerTimeout, deliveryOptions, errorHandler, errorMethodHandler, excecuteEventBusAndReply, failure, message, methodId, retryCount, stringConsumer, timeout, vxmsShared| Constructor and Description |
|---|
ExecuteEventbusString(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 |
|---|---|
void |
execute()
Execute the reply chain
|
void |
execute(io.vertx.core.eventbus.DeliveryOptions deliveryOptions)
Execute the reply chain with given deliveryOptions
|
fail, respondexecuteBlocking, executeBlockingStep, executeStep, getBlockingResultHandler, getBlockingResultHandler, getResultHandlerprotected final long delay
protected final ExecuteEventbusStringCall excecuteAsyncEventBusAndReply
protected final ThrowableSupplier<String> stringSupplier
protected final List<BlockingExecutionStep> chain
protected final ThrowableFunction<Throwable,String> onFailureRespond
public ExecuteEventbusString(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 respond tochain - the execution chainstringSupplier - the supplier, producing the byte responseexcecuteAsyncEventBusAndReply - handles the response execution after event-bus bridge
replyerrorHandler - the error handleronFailureRespond - the consumer that takes a Future with the alternate response value in
case of failuredeliveryOptions - the response deliver 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 void execute(io.vertx.core.eventbus.DeliveryOptions deliveryOptions)
ExecuteEventbusStringexecute in class ExecuteEventbusStringpublic void execute()
ExecuteEventbusStringexecute in class ExecuteEventbusStringCopyright © 2017. All rights reserved.