public class MultiSubCommandInvoker extends Object implements InvocationSuccessFunction<VisitableCommand>
| Modifier and Type | Method and Description |
|---|---|
Object |
apply(InvocationContext rCtx,
VisitableCommand rCommand,
Object rv)
Process the result from a successful invocation stage and either return a simple value,
return a new
InvocationStage, or throw an exception. |
static Object |
invokeEach(InvocationContext ctx,
Iterator<VisitableCommand> subCommands,
BaseAsyncInterceptor interceptor,
Object finalReturnValue)
Call
BaseAsyncInterceptor.invokeNext(InvocationContext, VisitableCommand) on a sequence of sub-commands. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplypublic static Object invokeEach(InvocationContext ctx, Iterator<VisitableCommand> subCommands, BaseAsyncInterceptor interceptor, Object finalReturnValue)
BaseAsyncInterceptor.invokeNext(InvocationContext, VisitableCommand) on a sequence of sub-commands.
Stop when one of the sub-commands throws an exception, and return an invocation stage with that exception. If all
the sub-commands are successful, return the finalStage. If finalStage has and exception, skip all
the sub-commands and just return the finalStage.
public Object apply(InvocationContext rCtx, VisitableCommand rCommand, Object rv) throws Throwable
InvocationSuccessFunctionInvocationStage, or throw an exception.apply in interface InvocationSuccessFunction<VisitableCommand>ThrowableCopyright © 2022 JBoss by Red Hat. All rights reserved.