public class ExecuteEventChainResponse<T> extends Object
| Constructor and Description |
|---|
ExecuteEventChainResponse(String methodId,
VxmsShared vxmsShared,
Throwable failure,
Consumer<Throwable> errorMethodHandler,
io.vertx.core.eventbus.Message<Object> message,
List<BlockingExecutionStep> chain) |
ExecuteEventChainResponse(String methodId,
VxmsShared vxmsShared,
Throwable failure,
Consumer<Throwable> errorMethodHandler,
io.vertx.core.eventbus.Message<Object> message,
List<BlockingExecutionStep> chain,
ExecuteEventbusObjectCall excecuteEventBusAndReply,
Encoder encoder,
Consumer<Throwable> errorHandler,
ThrowableErrorConsumer<Throwable,Serializable> onFailureRespond,
io.vertx.core.eventbus.DeliveryOptions deliveryOptions,
int retryCount,
long timeout,
long circuitBreakerTimeout) |
| Modifier and Type | Method and Description |
|---|---|
<H> ExecuteEventChainResponse<H> |
andThen(ThrowableFunction<T,H> step)
add an other step to execution chain
|
ExecuteEventbusByteResponse |
mapToByteResponse(ThrowableFunction<T,byte[]> step)
Returns a byte array to the target type
|
ExecuteEventbusObjectResponse |
mapToObjectResponse(ThrowableFunction<T,Serializable> step,
Encoder encoder)
Returns a Serializable to the target type
|
ExecuteEventbusStringResponse |
mapToStringResponse(ThrowableFunction<T,String> step)
Returns a String to the target type
|
public ExecuteEventChainResponse(String methodId, VxmsShared vxmsShared, Throwable failure, Consumer<Throwable> errorMethodHandler, io.vertx.core.eventbus.Message<Object> message, List<BlockingExecutionStep> chain, ExecuteEventbusObjectCall excecuteEventBusAndReply, Encoder encoder, Consumer<Throwable> errorHandler, ThrowableErrorConsumer<Throwable,Serializable> onFailureRespond, io.vertx.core.eventbus.DeliveryOptions deliveryOptions, int retryCount, long timeout, long circuitBreakerTimeout)
public ExecuteEventChainResponse(String methodId, VxmsShared vxmsShared, Throwable failure, Consumer<Throwable> errorMethodHandler, io.vertx.core.eventbus.Message<Object> message, List<BlockingExecutionStep> chain)
public <H> ExecuteEventChainResponse<H> andThen(ThrowableFunction<T,H> step)
H - the return type of the stepstep - the execution steppublic ExecuteEventbusByteResponse mapToByteResponse(ThrowableFunction<T,byte[]> step)
step - the execution step to map the response to byte[] responseExecuteEventbusByteResponsepublic ExecuteEventbusStringResponse mapToStringResponse(ThrowableFunction<T,String> step)
step - the execution step to map the response to String responseExecuteEventbusStringResponsepublic ExecuteEventbusObjectResponse mapToObjectResponse(ThrowableFunction<T,Serializable> step, Encoder encoder)
step - the execution step to map the response to Object responseencoder - the encoder to serialize the response objectExecuteEventbusObjectResponseCopyright © 2018. All rights reserved.