Package org.infinispan.interceptors
Interface InvocationCallback<C extends VisitableCommand>
- All Known Subinterfaces:
InvocationExceptionFunction<C>
,InvocationFinallyAction<C>
,InvocationFinallyFunction<C>
,InvocationSuccessAction<C>
,InvocationSuccessFunction<C>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Base interface for all callbacks used by
BaseAsyncInterceptor
and InvocationStage
methods.- Since:
- 9.0
- Author:
- Dan Berindei
-
Method Summary
Modifier and TypeMethodDescriptionapply
(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 newInvocationStage
, or throw an exception.
-
Method Details
-
apply
Process the result or the exception from an invocation stage and either return a simple value, return a newInvocationStage
, or throw an exception.- Throws:
Throwable
-