public class EventbusObjectExecutionUtil extends Object
| Constructor and Description |
|---|
EventbusObjectExecutionUtil() |
| Modifier and Type | Method and Description |
|---|---|
static ExecuteEventbusBasicObjectResponse |
mapToObjectResponse(String _methodId,
String _targetId,
Object _message,
ThrowableFutureBiConsumer<io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<Object>>,Serializable> _objectFunction,
io.vertx.core.eventbus.DeliveryOptions _requestOptions,
io.vertx.core.Vertx _vertx,
Throwable _failure,
java.util.function.Consumer<Throwable> _errorMethodHandler,
io.vertx.core.eventbus.Message<Object> _requestMessage,
ThrowableFutureConsumer<Serializable> _objectConsumer,
Encoder _encoder,
java.util.function.Consumer<Throwable> _errorHandler,
ThrowableErrorConsumer<Throwable,Serializable> _onFailureRespond,
io.vertx.core.eventbus.DeliveryOptions _responseDeliveryOptions,
int _retryCount,
long _timeout,
long _circuitBreakerTimeout)
create execution chain for event-bus request and reply to request event
|
public static ExecuteEventbusBasicObjectResponse mapToObjectResponse(String _methodId, String _targetId, Object _message, ThrowableFutureBiConsumer<io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<Object>>,Serializable> _objectFunction, io.vertx.core.eventbus.DeliveryOptions _requestOptions, io.vertx.core.Vertx _vertx, Throwable _failure, java.util.function.Consumer<Throwable> _errorMethodHandler, io.vertx.core.eventbus.Message<Object> _requestMessage, ThrowableFutureConsumer<Serializable> _objectConsumer, Encoder _encoder, java.util.function.Consumer<Throwable> _errorHandler, ThrowableErrorConsumer<Throwable,Serializable> _onFailureRespond, io.vertx.core.eventbus.DeliveryOptions _responseDeliveryOptions, int _retryCount, long _timeout, long _circuitBreakerTimeout)
_methodId - the method identifier_targetId - the event-bus target id_message - the message to send_objectFunction - the function to process the result message_requestOptions - the event-bus (request) delivery options_vertx - the vertx instance_failure - the failure thrown while task execution_errorMethodHandler - the error-method handler_requestMessage - the request message to respond to_objectConsumer - the consumer that takes a Future to complete, producing the string response_encoder - the encoder to serialize you response object_errorHandler - the error handler_onFailureRespond - the consumer that takes a Future with the alternate response value in case of failure_responseDeliveryOptions - the event-bus (response) delivery options_retryCount - the amount of retries before failure execution is triggered_timeout - the amount of time before the execution will be aborted_circuitBreakerTimeout - the amount of time before the circuit breaker closed againExecuteEventbusBasicObjectResponseCopyright © 2017. All rights reserved.