public class ExecuteEventbusBasicString extends Object
| Modifier and Type | Field and Description |
|---|---|
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 ExecuteEventbusStringCall |
excecuteEventBusAndReply |
protected Throwable |
failure |
protected io.vertx.core.eventbus.Message<Object> |
message |
protected String |
methodId |
protected ThrowableErrorConsumer<Throwable,String> |
onFailureRespond |
protected int |
retryCount |
protected ThrowableFutureConsumer<String> |
stringConsumer |
protected long |
timeout |
protected io.vertx.core.Vertx |
vertx |
| Constructor and Description |
|---|
ExecuteEventbusBasicString(String methodId,
io.vertx.core.Vertx vertx,
Throwable failure,
java.util.function.Consumer<Throwable> errorMethodHandler,
io.vertx.core.eventbus.Message<Object> message,
ThrowableFutureConsumer<String> stringConsumer,
ExecuteEventbusStringCall excecuteEventBusAndReply,
java.util.function.Consumer<Throwable> errorHandler,
ThrowableErrorConsumer<Throwable,String> 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 deliveryOptions
|
protected void |
fail(String result,
int statuscode) |
protected void |
respond(String result) |
protected final String methodId
protected final io.vertx.core.Vertx vertx
protected final Throwable failure
protected final java.util.function.Consumer<Throwable> errorMethodHandler
protected final io.vertx.core.eventbus.Message<Object> message
protected final ThrowableFutureConsumer<String> stringConsumer
protected final java.util.function.Consumer<Throwable> errorHandler
protected final ThrowableErrorConsumer<Throwable,String> onFailureRespond
protected final ExecuteEventbusStringCall excecuteEventBusAndReply
protected final io.vertx.core.eventbus.DeliveryOptions deliveryOptions
protected final int retryCount
protected final long timeout
protected final long circuitBreakerTimeout
public ExecuteEventbusBasicString(String methodId, io.vertx.core.Vertx vertx, Throwable failure, java.util.function.Consumer<Throwable> errorMethodHandler, io.vertx.core.eventbus.Message<Object> message, ThrowableFutureConsumer<String> stringConsumer, ExecuteEventbusStringCall excecuteEventBusAndReply, java.util.function.Consumer<Throwable> errorHandler, ThrowableErrorConsumer<Throwable,String> 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 tostringConsumer - 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 bus Delivery Optionspublic void execute()
protected void respond(String result)
protected void fail(String result, int statuscode)
Copyright © 2017. All rights reserved.