@FunctionalInterface public interface RetryBlockingExecutor<T>
| Modifier and Type | Method and Description |
|---|---|
void |
execute(String methodId,
String targetId,
Object message,
ThrowableFunction<io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<Object>>,T> function,
io.vertx.core.eventbus.DeliveryOptions requestDeliveryOptions,
io.vertx.core.Vertx vertx,
Throwable failure,
java.util.function.Consumer<Throwable> errorMethodHandler,
io.vertx.core.eventbus.Message<Object> requestMessage,
ThrowableSupplier<T> supplier,
Encoder encoder,
java.util.function.Consumer<Throwable> errorHandler,
ThrowableFunction<Throwable,T> onFailureRespond,
io.vertx.core.eventbus.DeliveryOptions responseDeliveryOptions,
int retryCount,
long timeout,
long delay,
long circuitBreakerTimeout)
Execute typed retry handling
|
void execute(String methodId, String targetId, Object message, ThrowableFunction<io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<Object>>,T> function, io.vertx.core.eventbus.DeliveryOptions requestDeliveryOptions, io.vertx.core.Vertx vertx, Throwable failure, java.util.function.Consumer<Throwable> errorMethodHandler, io.vertx.core.eventbus.Message<Object> requestMessage, ThrowableSupplier<T> supplier, Encoder encoder, java.util.function.Consumer<Throwable> errorHandler, ThrowableFunction<Throwable,T> onFailureRespond, io.vertx.core.eventbus.DeliveryOptions responseDeliveryOptions, int retryCount, long timeout, long delay, long circuitBreakerTimeout)
methodId - the method identifiertargetId - event-bus target idmessage - the event-bus messagefunction - the function to execute on messagerequestDeliveryOptions - the event-bus delivery optionsvertx - the vertx instancefailure - the failure thrown while task execution or messagingerrorMethodHandler - the error-method handlerrequestMessage - the message to responde tosupplier - the supplier to generate the responseencoder - the encoder to encode your objectserrorHandler - the error handleronFailureRespond - the consumer that takes a Future with the alternate response value in case of failureresponseDeliveryOptions - the response delivery optionsretryCount - the amount of retries before failure execution is triggeredtimeout - the delay time in ms between an execution error and the retrydelay - 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.