public class EventbusByteExecutionBlockingUtil extends Object
| Constructor and Description |
|---|
EventbusByteExecutionBlockingUtil() |
| Modifier and Type | Method and Description |
|---|---|
static ExecuteEventbusByteResponse |
mapToByteResponse(String _methodId,
String _targetId,
Object _message,
ThrowableFunction<io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<Object>>,byte[]> _byteFunction,
io.vertx.core.eventbus.DeliveryOptions _requestDeliveryOptions,
VxmsShared _vxmsShared,
Throwable _failure,
java.util.function.Consumer<Throwable> _errorMethodHandler,
io.vertx.core.eventbus.Message<Object> _requestMessage,
ThrowableSupplier<byte[]> _byteSupplier,
java.util.function.Consumer<Throwable> _errorHandler,
ThrowableFunction<Throwable,byte[]> _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 ExecuteEventbusByteResponse mapToByteResponse(String _methodId, String _targetId, Object _message, ThrowableFunction<io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<Object>>,byte[]> _byteFunction, io.vertx.core.eventbus.DeliveryOptions _requestDeliveryOptions, VxmsShared _vxmsShared, Throwable _failure, java.util.function.Consumer<Throwable> _errorMethodHandler, io.vertx.core.eventbus.Message<Object> _requestMessage, ThrowableSupplier<byte[]> _byteSupplier, java.util.function.Consumer<Throwable> _errorHandler, ThrowableFunction<Throwable,byte[]> _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_byteFunction - the function to process the result message_requestDeliveryOptions - the event-bus delivery options_vxmsShared - the vxmsShared instance, containing the Vertx instance and other shared
objects per instance_failure - the failure thrown while task execution_errorMethodHandler - the error-method handler_requestMessage - the event-bus request options_byteSupplier - the supplier, producing the byte 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 againExecuteEventbusByteResponseCopyright © 2017. All rights reserved.