public class ExecuteEventbusBasicByteResponse extends ExecuteEventbusBasicByte
byteConsumer, circuitBreakerTimeout, deliveryOptions, errorHandler, errorMethodHandler, excecuteEventBusAndReply, failure, message, methodId, onFailureRespond, retryCount, timeout, vxmsShared| Constructor and Description |
|---|
ExecuteEventbusBasicByteResponse(String methodId,
VxmsShared vxmsShared,
Throwable failure,
java.util.function.Consumer<Throwable> errorMethodHandler,
io.vertx.core.eventbus.Message<Object> message,
ThrowableFutureConsumer<byte[]> byteConsumer,
ExecuteEventbusByteCall excecuteEventBusAndReply,
java.util.function.Consumer<Throwable> errorHandler,
ThrowableErrorConsumer<Throwable,byte[]> onFailureRespond,
io.vertx.core.eventbus.DeliveryOptions deliveryOptions,
int retryCount,
long timeout,
long circuitBreakerTimeout) |
| Modifier and Type | Method and Description |
|---|---|
ExecuteEventbusBasicByteResponse |
onError(java.util.function.Consumer<Throwable> errorHandler)
This is an intermediate error method, the error will be passed along the chain (onFailurePass
or simply an error)
|
ExecuteEventbusBasicByteResponse |
onFailureRespond(ThrowableErrorConsumer<Throwable,byte[]> onFailureRespond)
defines an action for errors in byte responses, you can handle the error and return an
alternate createResponse value
|
ExecuteEventbusBasicByteCircuitBreaker |
retry(int retryCount)
retry execution N times before
|
ExecuteEventbusBasicByteResponse |
timeout(long timeout)
Defines how long a method can be executed before aborted.
|
execute, execute, fail, respondpublic ExecuteEventbusBasicByteResponse(String methodId, VxmsShared vxmsShared, Throwable failure, java.util.function.Consumer<Throwable> errorMethodHandler, io.vertx.core.eventbus.Message<Object> message, ThrowableFutureConsumer<byte[]> byteConsumer, ExecuteEventbusByteCall excecuteEventBusAndReply, java.util.function.Consumer<Throwable> errorHandler, ThrowableErrorConsumer<Throwable,byte[]> onFailureRespond, io.vertx.core.eventbus.DeliveryOptions deliveryOptions, int retryCount, long timeout, long circuitBreakerTimeout)
public ExecuteEventbusBasicByteResponse onFailureRespond(ThrowableErrorConsumer<Throwable,byte[]> onFailureRespond)
onFailureRespond - the handler (function) to execute on errorExecuteEventbusBasicByteResponsepublic ExecuteEventbusBasicByteResponse onError(java.util.function.Consumer<Throwable> errorHandler)
errorHandler - , a consumer that holds the errorExecuteEventbusBasicByteResponsepublic ExecuteEventbusBasicByteResponse timeout(long timeout)
timeout - the amount of timeout in msExecuteEventbusBasicByteResponsepublic ExecuteEventbusBasicByteCircuitBreaker retry(int retryCount)
retryCount - the amount of retriesExecuteEventbusBasicByteCircuitBreakerCopyright © 2017. All rights reserved.