public class StepExecution extends Object
| Constructor and Description |
|---|
StepExecution() |
| Modifier and Type | Method and Description |
|---|---|
static <T,V> void |
createResponse(String methodId,
int retry,
long timeout,
long circuitBreakerTimeout,
ThrowableFutureBiConsumer<T,V> step,
T inputValue,
Consumer<Throwable> errorHandler,
ThrowableErrorConsumer<Throwable,V> onFailureRespond,
Consumer<Throwable> errorMethodHandler,
VxmsShared vxmsShared,
Throwable failure,
Consumer<ExecutionResult<V>> resultConsumer)
Executes the response creation and handles failures
|
public static <T,V> void createResponse(String methodId, int retry, long timeout, long circuitBreakerTimeout, ThrowableFutureBiConsumer<T,V> step, T inputValue, Consumer<Throwable> errorHandler, ThrowableErrorConsumer<Throwable,V> onFailureRespond, Consumer<Throwable> errorMethodHandler, VxmsShared vxmsShared, Throwable failure, Consumer<ExecutionResult<V>> resultConsumer)
T - the type of input valueV - the type of responsemethodId - the method name/id to be executedretry - the amount of retriestimeout - the max timeout time for the method executioncircuitBreakerTimeout - the stateful circuit breaker release timestep, - the user step to be executedinputValue, - the input value for the steperrorHandler - the intermediate error method, executed on each erroronFailureRespond - the method to be executed on failureerrorMethodHandler - the fallback methodvxmsShared - the vxmsShared instance, containing the Vertx instance and other shared
objects per instancefailure - last thrown ExceptionresultConsumer - the consumer that takes the execution resultzCopyright © 2017. All rights reserved.