Package org.infinispan.interceptors
Interface InvocationCallback<C extends org.infinispan.commands.VisitableCommand>
-
- All Known Subinterfaces:
BaseDistributionInterceptor.ReadManyCommandHelper<C>,InvocationExceptionFunction<C>,InvocationFinallyAction<C>,InvocationFinallyFunction<C>,InvocationSuccessAction<C>,InvocationSuccessFunction<C>
- All Known Implementing Classes:
BaseDistributionInterceptor.ReadOnlyManyHelper,ScatteredDistributionInterceptor.PrimaryResponseHandler
- 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 InvocationCallback<C extends org.infinispan.commands.VisitableCommand>Base interface for all callbacks used byBaseAsyncInterceptorandInvocationStagemethods.- Since:
- 9.0
- Author:
- Dan Berindei
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Objectapply(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
-
apply
java.lang.Object apply(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 either return a simple value, return a newInvocationStage, or throw an exception.- Throws:
java.lang.Throwable
-
-