public class ExecuteEventbusBasicByte extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ThrowableFutureConsumer<byte[]> |
byteConsumer |
protected long |
circuitBreakerTimeout |
protected io.vertx.core.eventbus.DeliveryOptions |
deliveryOptions |
protected java.util.function.Consumer<Throwable> |
errorHandler |
protected java.util.function.Consumer<Throwable> |
errorMethodHandler |
protected ExecuteEventbusByteCall |
excecuteEventBusAndReply |
protected Throwable |
failure |
protected io.vertx.core.eventbus.Message<Object> |
message |
protected String |
methodId |
protected ThrowableErrorConsumer<Throwable,byte[]> |
onFailureRespond |
protected int |
retryCount |
protected long |
timeout |
protected io.vertx.core.Vertx |
vertx |
| Constructor and Description |
|---|
ExecuteEventbusBasicByte(String methodId,
io.vertx.core.Vertx vertx,
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)
The constructor to pass all needed members
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Execute the reply chain
|
void |
execute(io.vertx.core.eventbus.DeliveryOptions deliveryOptions)
Execute the reply chain with given http status code
|
protected void |
fail(String result,
int statuscode) |
protected void |
respond(byte[] result) |
protected final String methodId
protected final io.vertx.core.Vertx vertx
protected final Throwable failure
protected final io.vertx.core.eventbus.Message<Object> message
protected final java.util.function.Consumer<Throwable> errorHandler
protected final java.util.function.Consumer<Throwable> errorMethodHandler
protected final ThrowableFutureConsumer<byte[]> byteConsumer
protected final ThrowableErrorConsumer<Throwable,byte[]> onFailureRespond
protected final ExecuteEventbusByteCall excecuteEventBusAndReply
protected final io.vertx.core.eventbus.DeliveryOptions deliveryOptions
protected final int retryCount
protected final long timeout
protected final long circuitBreakerTimeout
public ExecuteEventbusBasicByte(String methodId, io.vertx.core.Vertx vertx, 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)
methodId - the method identifiervertx - the vertx instancefailure - the failure thrown while task executionerrorMethodHandler - the error handlermessage - the message to respond tobyteConsumer - the consumer, producing the byte responseexcecuteEventBusAndReply - handles the response execution after event-bus bridge replyerrorHandler - the error handleronFailureRespond - the consumer that takes a Future with the alternate response value in case of failuredeliveryOptions - the response deliver optionsretryCount - the amount of retries before failure execution is triggeredtimeout - the amount of time before the execution will be abortedcircuitBreakerTimeout - the amount of time before the circuit breaker closed againpublic void execute(io.vertx.core.eventbus.DeliveryOptions deliveryOptions)
deliveryOptions, - the event b us deliver optionspublic void execute()
protected void fail(String result, int statuscode)
protected void respond(byte[] result)
Copyright © 2017. All rights reserved.