public class ExecuteEventbusByte extends ExecuteEventbusBasicByte
| Modifier and Type | Field and Description |
|---|---|
protected ThrowableSupplier<byte[]> |
byteSupplier |
protected long |
delay |
protected ExecuteEventbusByteCallBlocking |
excecuteAsyncEventBusAndReply |
protected ThrowableFunction<Throwable,byte[]> |
onFailureRespond |
byteConsumer, circuitBreakerTimeout, deliveryOptions, errorHandler, errorMethodHandler, excecuteEventBusAndReply, failure, message, methodId, retryCount, timeout, vxmsShared| Constructor and Description |
|---|
ExecuteEventbusByte(String methodId,
VxmsShared vxmsShared,
Throwable failure,
java.util.function.Consumer<Throwable> errorMethodHandler,
io.vertx.core.eventbus.Message<Object> message,
ThrowableSupplier<byte[]> byteSupplier,
ExecuteEventbusByteCallBlocking excecuteEventBusAndReply,
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 |
|---|---|
void |
execute()
Execute the reply chain
|
void |
execute(io.vertx.core.eventbus.DeliveryOptions deliveryOptions)
Execute the reply chain with given http status code
|
fail, respondprotected final long delay
protected final ExecuteEventbusByteCallBlocking excecuteAsyncEventBusAndReply
protected final ThrowableSupplier<byte[]> byteSupplier
protected final ThrowableFunction<Throwable,byte[]> onFailureRespond
public ExecuteEventbusByte(String methodId, VxmsShared vxmsShared, Throwable failure, java.util.function.Consumer<Throwable> errorMethodHandler, io.vertx.core.eventbus.Message<Object> message, ThrowableSupplier<byte[]> byteSupplier, ExecuteEventbusByteCallBlocking excecuteEventBusAndReply, 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 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 tobyteSupplier - the supplier, producing the byte responseexcecuteEventBusAndReply - 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 void execute(io.vertx.core.eventbus.DeliveryOptions deliveryOptions)
ExecuteEventbusBasicByteexecute in class ExecuteEventbusBasicBytepublic void execute()
ExecuteEventbusBasicByteexecute in class ExecuteEventbusBasicByteCopyright © 2017. All rights reserved.