public class EventbusBridgeExecution extends Object
| Constructor and Description |
|---|
EventbusBridgeExecution() |
| Modifier and Type | Method and Description |
|---|---|
static <T> void |
sendMessageAndSupplyHandler(String methodId,
String targetId,
Object message,
ThrowableFutureBiConsumer<io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<Object>>,T> function,
io.vertx.core.eventbus.DeliveryOptions requestDeliveryOptions,
VxmsShared vxmsShared,
java.util.function.Consumer<Throwable> errorMethodHandler,
io.vertx.core.eventbus.Message<Object> requestMessage,
Encoder encoder,
java.util.function.Consumer<Throwable> errorHandler,
ThrowableErrorConsumer<Throwable,T> onFailureRespond,
io.vertx.core.eventbus.DeliveryOptions responseDeliveryOptions,
int retryCount,
long timeout,
long circuitBreakerTimeout,
RecursiveExecutor executor,
RetryExecutor retryExecutor)
Send event-bus message and process the result in the passed function for the execution chain
|
public static <T> void sendMessageAndSupplyHandler(String methodId, String targetId, Object message, ThrowableFutureBiConsumer<io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<Object>>,T> function, io.vertx.core.eventbus.DeliveryOptions requestDeliveryOptions, VxmsShared vxmsShared, java.util.function.Consumer<Throwable> errorMethodHandler, io.vertx.core.eventbus.Message<Object> requestMessage, Encoder encoder, java.util.function.Consumer<Throwable> errorHandler, ThrowableErrorConsumer<Throwable,T> onFailureRespond, io.vertx.core.eventbus.DeliveryOptions responseDeliveryOptions, int retryCount, long timeout, long circuitBreakerTimeout, RecursiveExecutor executor, RetryExecutor retryExecutor)
T - the type of responsemethodId - the method identifiertargetId - the event-bus target idmessage - the message to sendfunction - the function to process the result messagerequestDeliveryOptions - 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 abortedcircuitBreakerTimeout - 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.