public class EventbusBridgeBlockingExecution extends Object
| Constructor and Description |
|---|
EventbusBridgeBlockingExecution() |
| Modifier and Type | Method and Description |
|---|---|
static <T> void |
sendMessageAndSupplyHandler(String methodId,
String targetId,
Object message,
ThrowableFunction<io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<Object>>,T> function,
io.vertx.core.eventbus.DeliveryOptions deliveryOptions,
VxmsShared vxmsShared,
java.util.function.Consumer<Throwable> errorMethodHandler,
io.vertx.core.eventbus.Message<Object> requestMessage,
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,
RecursiveBlockingExecutor executor,
RetryBlockingExecutor retryExecutor)
Send event-bus message and process the result in the passed function for blocking execution
chain
|
public static <T> void sendMessageAndSupplyHandler(String methodId, String targetId, Object message, ThrowableFunction<io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<Object>>,T> function, io.vertx.core.eventbus.DeliveryOptions deliveryOptions, VxmsShared vxmsShared, java.util.function.Consumer<Throwable> errorMethodHandler, io.vertx.core.eventbus.Message<Object> requestMessage, 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, RecursiveBlockingExecutor executor, RetryBlockingExecutor retryExecutor)
T - the type of responsemethodId - the method identifiertargetId - the event-bus target idmessage - the message to sendfunction - the function to process the result messagedeliveryOptions - the event-bus delivery optionsvxmsShared - the vxmsShared instance, containing the Vertx instance and other shared
objects per instanceerrorMethodHandler - the error-method handlerrequestMessage - the request message to respond after chain executionencoder - the encoder to serialize the response objecterrorHandler - the error handleronFailureRespond - the function that takes a Future with the alternate response value in
case of failureresponseDeliveryOptions - the delivery options for the event responseretryCount - 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 againexecutor - the typed executor to process the chainretryExecutor - the typed retry executor of the chainCopyright © 2017. All rights reserved.