public class ExecuteEventbusByteResponse extends ExecuteEventbusByte
byteConsumer, chain, circuitBreakerTimeout, deliveryOptions, errorHandler, errorMethodHandler, excecuteEventBusAndReply, failure, message, methodId, onFailureRespond, retryCount, timeout, vxmsShared| Constructor and Description |
|---|
ExecuteEventbusByteResponse(String methodId,
VxmsShared vxmsShared,
Throwable failure,
Consumer<Throwable> errorMethodHandler,
io.vertx.core.eventbus.Message<Object> message,
List<ExecutionStep> chain,
ThrowableFutureConsumer<byte[]> byteConsumer) |
ExecuteEventbusByteResponse(String methodId,
VxmsShared vxmsShared,
Throwable failure,
Consumer<Throwable> errorMethodHandler,
io.vertx.core.eventbus.Message<Object> message,
List<ExecutionStep> chain,
ThrowableFutureConsumer<byte[]> byteConsumer,
ExecuteEventbusByteCall excecuteEventBusAndReply,
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 |
|---|---|
ExecuteEventbusByteResponse |
onError(Consumer<Throwable> errorHandler)
This is an intermediate error method, the error will be passed along the chain (onFailurePass
or simply an error)
|
ExecuteEventbusByteResponse |
onFailureRespond(ThrowableErrorConsumer<Throwable,byte[]> onFailureRespond)
defines an action for errors in byte responses, you can handle the error and return an
alternate createResponse value
|
ExecuteEventbusByteCircuitBreaker |
retry(int retryCount)
retry execution N times before
|
ExecuteEventbusByteResponse |
timeout(long timeout)
Defines how long a method can be executed before aborted.
|
execute, execute, fail, respondexecuteBlocking, executeBlockingStep, executeStep, getBlockingResultHandler, getBlockingResultHandler, getResultHandlerpublic ExecuteEventbusByteResponse(String methodId, VxmsShared vxmsShared, Throwable failure, Consumer<Throwable> errorMethodHandler, io.vertx.core.eventbus.Message<Object> message, List<ExecutionStep> chain, ThrowableFutureConsumer<byte[]> byteConsumer, ExecuteEventbusByteCall excecuteEventBusAndReply, Consumer<Throwable> errorHandler, ThrowableErrorConsumer<Throwable,byte[]> onFailureRespond, io.vertx.core.eventbus.DeliveryOptions deliveryOptions, int retryCount, long timeout, long circuitBreakerTimeout)
public ExecuteEventbusByteResponse(String methodId, VxmsShared vxmsShared, Throwable failure, Consumer<Throwable> errorMethodHandler, io.vertx.core.eventbus.Message<Object> message, List<ExecutionStep> chain, ThrowableFutureConsumer<byte[]> byteConsumer)
public ExecuteEventbusByteResponse onFailureRespond(ThrowableErrorConsumer<Throwable,byte[]> onFailureRespond)
onFailureRespond - the handler (function) to execute on errorExecuteEventbusByteResponsepublic ExecuteEventbusByteResponse onError(Consumer<Throwable> errorHandler)
errorHandler - , a consumer that holds the errorExecuteEventbusByteResponsepublic ExecuteEventbusByteResponse timeout(long timeout)
timeout - the amount of timeout in msExecuteEventbusByteResponsepublic ExecuteEventbusByteCircuitBreaker retry(int retryCount)
retryCount - the amount of retriesExecuteEventbusByteCircuitBreakerCopyright © 2018. All rights reserved.