public class StepExecution extends Object
| Constructor and Description |
|---|
StepExecution() |
| Modifier and Type | Method and Description |
|---|---|
static <T,V> void |
createResponseBlocking(String methodId,
ThrowableFunction<T,V> step,
T value,
io.vertx.core.Future<ExecutionResult<V>> resultHandler,
Consumer<Throwable> errorHandler,
ThrowableFunction<Throwable,V> onFailureRespond,
Consumer<Throwable> errorMethodHandler,
VxmsShared vxmsShared,
Throwable failure,
int retry,
long timeout,
long circuitBreakerTimeout,
long delay)
Executes the response creation and handles failures
|
public static <T,V> void createResponseBlocking(String methodId, ThrowableFunction<T,V> step, T value, io.vertx.core.Future<ExecutionResult<V>> resultHandler, Consumer<Throwable> errorHandler, ThrowableFunction<Throwable,V> onFailureRespond, Consumer<Throwable> errorMethodHandler, VxmsShared vxmsShared, Throwable failure, int retry, long timeout, long circuitBreakerTimeout, long delay)
T - the type of input valueV - the type of responsemethodId - the method name/id to be executedstep - the step to executevalue - the return value from the previous stepresultHandler - the result handler, that takes the resulterrorHandler - 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 Exceptionretry - the amount of retriestimeout - the max timeout time for the method executioncircuitBreakerTimeout - the stateful circuit breaker release timedelay - the delay time between retryCopyright © 2018. All rights reserved.