Package org.infinispan.interceptors
Interface InvocationSuccessFunction
-
- All Superinterfaces:
InvocationCallback
- All Known Subinterfaces:
BaseDistributionInterceptor.ReadManyCommandHelper<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 InvocationSuccessFunction extends InvocationCallback
Callback interface forBaseAsyncInterceptor.invokeNextThenApply(InvocationContext, VisitableCommand, InvocationSuccessFunction)
.- Since:
- 9.0
- Author:
- Dan Berindei
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Object
apply(InvocationContext rCtx, org.infinispan.commands.VisitableCommand rCommand, Object rv)
Process the result from a successful invocation stage and either return a simple value, return a newInvocationStage
, or throw an exception.default Object
apply(InvocationContext rCtx, org.infinispan.commands.VisitableCommand rCommand, Object rv, 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
Object apply(InvocationContext rCtx, org.infinispan.commands.VisitableCommand rCommand, Object rv) throws Throwable
Process the result from a successful invocation stage and either return a simple value, return a newInvocationStage
, or throw an exception.- Throws:
Throwable
-
apply
default Object apply(InvocationContext rCtx, org.infinispan.commands.VisitableCommand rCommand, Object rv, Throwable throwable) throws 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
- Throws:
Throwable
-
-