public class EventbusObjectExecutionBlockingUtil extends Object
| Constructor and Description |
|---|
EventbusObjectExecutionBlockingUtil() |
| Modifier and Type | Method and Description |
|---|---|
static ExecuteEventbusObjectResponse |
mapToObjectResponse(String _methodId,
String _targetId,
Object _message,
ThrowableFunction<io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<Object>>,Serializable> _objectFunction,
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<Serializable> _objectSupplier,
Encoder _encoder,
java.util.function.Consumer<Throwable> _errorHandler,
ThrowableFunction<Throwable,Serializable> _onFailureRespond,
io.vertx.core.eventbus.DeliveryOptions _responseDeliveryOptions,
int _retryCount,
long _timeout,
long _delay,
long _circuitBreakerTimeout)
create execution chain for event-bus request and reply to the event
|
public static ExecuteEventbusObjectResponse mapToObjectResponse(String _methodId, String _targetId, Object _message, ThrowableFunction<io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<Object>>,Serializable> _objectFunction, 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<Serializable> _objectSupplier, Encoder _encoder, java.util.function.Consumer<Throwable> _errorHandler, ThrowableFunction<Throwable,Serializable> _onFailureRespond, io.vertx.core.eventbus.DeliveryOptions _responseDeliveryOptions, int _retryCount, long _timeout, long _delay, 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_requestDeliveryOptions - the event-bus delivery options_vertx - the vertx instance_failure - the failure thrown while task execution_errorMethodHandler - the error-method handler_requestMessage - the event-bus request options_objectSupplier - the supplier, producing the object response_encoder - the encoder to serialize the result object_errorHandler - the error handler_onFailureRespond - the consumer that takes a Future with the alternate response value in case of failure_responseDeliveryOptions - the delivery options_retryCount - the amount of retries before failure execution is triggered_timeout - the amount of time before the execution will be aborted_delay - the delay between an error and the retry_circuitBreakerTimeout - the amount of time before the circuit breaker closed againExecuteEventbusObjectResponseCopyright © 2017. All rights reserved.