public class EventbusByteExecutionUtil extends Object
| Constructor and Description |
|---|
EventbusByteExecutionUtil() |
| Modifier and Type | Method and Description |
|---|---|
static ExecuteEventbusBasicByteResponse |
mapToByteResponse(String _methodId,
String _targetId,
Object _message,
ThrowableFutureBiConsumer<io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<Object>>,byte[]> _byteFunction,
io.vertx.core.eventbus.DeliveryOptions _requestOptions,
VxmsShared _vxmsShared,
Throwable _failure,
java.util.function.Consumer<Throwable> _errorMethodHandler,
io.vertx.core.eventbus.Message<Object> _requestMessage,
ThrowableFutureConsumer<byte[]> _byteConsumer,
java.util.function.Consumer<Throwable> _errorHandler,
ThrowableErrorConsumer<Throwable,byte[]> _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 ExecuteEventbusBasicByteResponse mapToByteResponse(String _methodId, String _targetId, Object _message, ThrowableFutureBiConsumer<io.vertx.core.AsyncResult<io.vertx.core.eventbus.Message<Object>>,byte[]> _byteFunction, io.vertx.core.eventbus.DeliveryOptions _requestOptions, VxmsShared _vxmsShared, Throwable _failure, java.util.function.Consumer<Throwable> _errorMethodHandler, io.vertx.core.eventbus.Message<Object> _requestMessage, ThrowableFutureConsumer<byte[]> _byteConsumer, java.util.function.Consumer<Throwable> _errorHandler, ThrowableErrorConsumer<Throwable,byte[]> _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_byteFunction - the function to process the result message_requestOptions - the event-bus (request) 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 request message to respond to_byteConsumer - the consumer that takes a Future to complete, 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 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 againExecuteEventbusBasicByteResponseCopyright © 2017. All rights reserved.