public class EventbusStringExecutionBlockingUtil extends Object
| Constructor and Description |
|---|
EventbusStringExecutionBlockingUtil() |
| Modifier and Type | Method and Description |
|---|---|
static ExecuteEventbusStringResponse |
mapToStringResponse(String _methodId,
String _targetId,
Object _message,
ThrowableFunction<io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<Object>>,String> _stringFunction,
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<String> _stringSupplier,
java.util.function.Consumer<Throwable> _errorHandler,
ThrowableFunction<Throwable,String> _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 ExecuteEventbusStringResponse mapToStringResponse(String _methodId, String _targetId, Object _message, ThrowableFunction<io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<Object>>,String> _stringFunction, 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<String> _stringSupplier, java.util.function.Consumer<Throwable> _errorHandler, ThrowableFunction<Throwable,String> _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_stringFunction - 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_stringSupplier - the supplier, producing the string response_errorHandler - the error handler_onFailureRespond - the consumer that takes a Future with the alternate response value in case of failure_responseDeliveryOptions - the response 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 againExecuteEventbusStringResponseCopyright © 2017. All rights reserved.