@FunctionalInterface public interface RetryExecutor<T>
| Modifier and Type | Method and Description |
|---|---|
void |
execute(String targetId,
Object message,
ThrowableFutureBiConsumer<io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<Object>>,T> function,
io.vertx.core.eventbus.DeliveryOptions requestDeliveryOptions,
String methodId,
io.vertx.core.Vertx vertx,
Throwable failure,
java.util.function.Consumer<Throwable> errorMethodHandler,
io.vertx.core.eventbus.Message<Object> requestMessage,
ThrowableFutureConsumer<T> consumer,
Encoder encoder,
java.util.function.Consumer<Throwable> errorHandler,
ThrowableErrorConsumer<Throwable,T> onFailureRespond,
io.vertx.core.eventbus.DeliveryOptions responseDeliveryOptions,
int retryCount,
long timeout,
long circuitBreakerTimeout)
Execute typed retry handling
|
void execute(String targetId, Object message, ThrowableFutureBiConsumer<io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<Object>>,T> function, io.vertx.core.eventbus.DeliveryOptions requestDeliveryOptions, String methodId, io.vertx.core.Vertx vertx, Throwable failure, java.util.function.Consumer<Throwable> errorMethodHandler, io.vertx.core.eventbus.Message<Object> requestMessage, ThrowableFutureConsumer<T> consumer, Encoder encoder, java.util.function.Consumer<Throwable> errorHandler, ThrowableErrorConsumer<Throwable,T> onFailureRespond, io.vertx.core.eventbus.DeliveryOptions responseDeliveryOptions, int retryCount, long timeout, long circuitBreakerTimeout)
targetId - event-bus target idmessage - the message to replyfunction - the function to execute and to create a response objectrequestDeliveryOptions - the request delivery optionsmethodId - the method identifiervertx - the vertx instancefailure - the failure thrown while task execution or messagingerrorMethodHandler - the error-method handlerrequestMessage - the message to reply toconsumer - the consumer to complete the responseencoder - the encoder to serialize the response objecterrorHandler - the error handleronFailureRespond - the consumer that takes a Future with the alternate response value in case of failureresponseDeliveryOptions - the delivery options for the responseretryCount - the amount of retries before failure execution is triggeredtimeout - the delay time in ms between an execution error and the retrycircuitBreakerTimeout - the amount of time before the circuit breaker closed againCopyright © 2017. All rights reserved.