Package org.infinispan.interceptors
Interface InvocationFinallyAction<C extends org.infinispan.commands.VisitableCommand>
-
- All Superinterfaces:
InvocationCallback<C>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface InvocationFinallyAction<C extends org.infinispan.commands.VisitableCommand> extends InvocationCallback<C>
Callback interface forBaseAsyncInterceptor.invokeNextAndFinally(InvocationContext, VisitableCommand, InvocationFinallyAction)
.- Since:
- 9.0
- Author:
- Dan Berindei
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description void
accept(InvocationContext rCtx, C rCommand, java.lang.Object rv, java.lang.Throwable throwable)
Process the result or the exception from an invocation stage and possibly throw an exception.default java.lang.Object
apply(InvocationContext rCtx, C rCommand, java.lang.Object rv, java.lang.Throwable throwable)
Process the result or the exception from an invocation stage and either return a simple value, return a newInvocationStage
, or throw an exception.
-
-
-
Method Detail
-
accept
void accept(InvocationContext rCtx, C rCommand, java.lang.Object rv, java.lang.Throwable throwable) throws java.lang.Throwable
Process the result or the exception from an invocation stage and possibly throw an exception.- Throws:
java.lang.Throwable
-
apply
default java.lang.Object apply(InvocationContext rCtx, C rCommand, java.lang.Object rv, java.lang.Throwable throwable) throws java.lang.Throwable
Description copied from interface:InvocationCallback
Process the result or the exception from an invocation stage and either return a simple value, return a newInvocationStage
, or throw an exception.- Specified by:
apply
in interfaceInvocationCallback<C extends org.infinispan.commands.VisitableCommand>
- Throws:
java.lang.Throwable
-
-