public class ExecuteEventbusBasicObjectCircuitBreaker extends ExecuteEventbusBasicObjectResponse
circuitBreakerTimeout, deliveryOptions, encoder, errorHandler, errorMethodHandler, excecuteEventBusAndReply, failure, message, methodId, objectConsumer, onFailureRespond, retryCount, timeout, vertx| Constructor and Description |
|---|
ExecuteEventbusBasicObjectCircuitBreaker(String methodId,
io.vertx.core.Vertx vertx,
Throwable failure,
java.util.function.Consumer<Throwable> errorMethodHandler,
io.vertx.core.eventbus.Message<Object> message,
ThrowableFutureConsumer<Serializable> objectConsumer,
ExecuteEventbusObjectCall excecuteEventBusAndReply,
Encoder encoder,
java.util.function.Consumer<Throwable> errorHandler,
ThrowableErrorConsumer<Throwable,Serializable> onFailureRespond,
io.vertx.core.eventbus.DeliveryOptions deliveryOptions,
int retryCount,
long timeout,
long circuitBreakerTimeout)
The constructor to pass all needed members
|
| Modifier and Type | Method and Description |
|---|---|
ExecuteEventbusBasicObjectResponse |
closeCircuitBreaker(long circuitBreakerTimeout)
Define a timeout to release the stateful circuit breaker.
|
onError, onFailureRespond, retry, timeoutexecute, execute, fail, respondpublic ExecuteEventbusBasicObjectCircuitBreaker(String methodId, io.vertx.core.Vertx vertx, Throwable failure, java.util.function.Consumer<Throwable> errorMethodHandler, io.vertx.core.eventbus.Message<Object> message, ThrowableFutureConsumer<Serializable> objectConsumer, ExecuteEventbusObjectCall excecuteEventBusAndReply, Encoder encoder, java.util.function.Consumer<Throwable> errorHandler, ThrowableErrorConsumer<Throwable,Serializable> onFailureRespond, io.vertx.core.eventbus.DeliveryOptions deliveryOptions, int retryCount, long timeout, long circuitBreakerTimeout)
methodId - the method identifiervertx - the vertx instancefailure - the failure thrown while task executionerrorMethodHandler - the error handlermessage - the message to respond toobjectConsumer - the supplier, producing the byte responseexcecuteEventBusAndReply - the response of an event-bus call which is passed to the fluent APIencoder - the encoder to serialize the response objecterrorHandler - 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 abortedcircuitBreakerTimeout - the amount of time before the circuit breaker closed againpublic ExecuteEventbusBasicObjectResponse closeCircuitBreaker(long circuitBreakerTimeout)
circuitBreakerTimeout - the amount of time in ms before close the CircuitBreaker to allow "normal" execution path again, a value of 0l will use a stateless retry mechanism (performs faster)ExecuteEventbusBasicObjectResponseCopyright © 2017. All rights reserved.