public class ExecuteEventbusString extends ExecuteEventbusBasicString
| Modifier and Type | Field and Description |
|---|---|
protected long |
delay |
protected ExecuteEventbusStringCallBlocking |
excecuteAsyncEventBusAndReply |
protected ThrowableFunction<Throwable,String> |
onFailureRespond |
protected ThrowableSupplier<String> |
stringSupplier |
circuitBreakerTimeout, deliveryOptions, errorHandler, errorMethodHandler, excecuteEventBusAndReply, failure, message, methodId, retryCount, stringConsumer, timeout, vertx| Constructor and Description |
|---|
ExecuteEventbusString(String methodId,
io.vertx.core.Vertx vertx,
Throwable failure,
java.util.function.Consumer<Throwable> errorMethodHandler,
io.vertx.core.eventbus.Message<Object> message,
ThrowableSupplier<String> stringSupplier,
ExecuteEventbusStringCallBlocking excecuteAsyncEventBusAndReply,
java.util.function.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, respondprotected final long delay
protected final ExecuteEventbusStringCallBlocking excecuteAsyncEventBusAndReply
protected final ThrowableSupplier<String> stringSupplier
protected final ThrowableFunction<Throwable,String> onFailureRespond
public ExecuteEventbusString(String methodId, io.vertx.core.Vertx vertx, Throwable failure, java.util.function.Consumer<Throwable> errorMethodHandler, io.vertx.core.eventbus.Message<Object> message, ThrowableSupplier<String> stringSupplier, ExecuteEventbusStringCallBlocking excecuteAsyncEventBusAndReply, java.util.function.Consumer<Throwable> errorHandler, ThrowableFunction<Throwable,String> 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 respond tostringSupplier - 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 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 void execute(io.vertx.core.eventbus.DeliveryOptions deliveryOptions)
ExecuteEventbusBasicStringexecute in class ExecuteEventbusBasicStringpublic void execute()
ExecuteEventbusBasicStringexecute in class ExecuteEventbusBasicStringCopyright © 2017. All rights reserved.