public class ExecuteEventbusObject extends ExecuteEventbusBasicObject
| Modifier and Type | Field and Description |
|---|---|
protected long |
delay |
protected ExecuteEventbusObjectCallBlocking |
excecuteEventBusAndReply |
protected ThrowableSupplier<Serializable> |
objectSupplier |
protected ThrowableFunction<Throwable,Serializable> |
onFailureRespond |
protected long |
timeout |
circuitBreakerTimeout, deliveryOptions, encoder, errorHandler, errorMethodHandler, failure, message, methodId, objectConsumer, retryCount, vxmsShared| Constructor and Description |
|---|
ExecuteEventbusObject(String methodId,
VxmsShared vxmsShared,
Throwable failure,
java.util.function.Consumer<Throwable> errorMethodHandler,
io.vertx.core.eventbus.Message<Object> message,
ThrowableSupplier<Serializable> objectSupplier,
ExecuteEventbusObjectCallBlocking excecuteEventBusAndReply,
Encoder encoder,
java.util.function.Consumer<Throwable> errorHandler,
ThrowableFunction<Throwable,Serializable> 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 and content-type
|
fail, respondprotected final long delay
protected final long timeout
protected final ExecuteEventbusObjectCallBlocking excecuteEventBusAndReply
protected final ThrowableSupplier<Serializable> objectSupplier
protected final ThrowableFunction<Throwable,Serializable> onFailureRespond
public ExecuteEventbusObject(String methodId, VxmsShared vxmsShared, Throwable failure, java.util.function.Consumer<Throwable> errorMethodHandler, io.vertx.core.eventbus.Message<Object> message, ThrowableSupplier<Serializable> objectSupplier, ExecuteEventbusObjectCallBlocking excecuteEventBusAndReply, Encoder encoder, java.util.function.Consumer<Throwable> errorHandler, ThrowableFunction<Throwable,Serializable> 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 toobjectSupplier - the supplier, producing the byte responseexcecuteEventBusAndReply - the response of an event-bus call which is passed to the fluent
APIencoder - the encoder to serialize your objecterrorHandler - 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)
ExecuteEventbusBasicObjectexecute in class ExecuteEventbusBasicObjectpublic void execute()
ExecuteEventbusBasicObjectexecute in class ExecuteEventbusBasicObjectCopyright © 2017. All rights reserved.