@FunctionalInterface public interface InvocationSuccessFunction<C extends VisitableCommand> extends InvocationCallback<C>
BaseAsyncInterceptor.invokeNextThenApply(InvocationContext, VisitableCommand, InvocationSuccessFunction)
.Modifier and Type | Method and Description |
---|---|
Object |
apply(InvocationContext rCtx,
C 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. |
default Object |
apply(InvocationContext rCtx,
C rCommand,
Object rv,
Throwable throwable)
Process the result or the exception from an invocation stage and either return a simple value,
return a new
InvocationStage , or throw an exception. |
Object apply(InvocationContext rCtx, C rCommand, Object rv) throws Throwable
InvocationStage
, or throw an exception.Throwable
default Object apply(InvocationContext rCtx, C rCommand, Object rv, Throwable throwable) throws Throwable
InvocationCallback
InvocationStage
, or throw an exception.apply
in interface InvocationCallback<C extends VisitableCommand>
Throwable
Copyright © 2021 JBoss by Red Hat. All rights reserved.