Package org.infinispan.interceptors
Interface InvocationExceptionFunction<C extends 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 InvocationExceptionFunction<C extends VisitableCommand>
extends InvocationCallback<C>
Callback interface for
BaseAsyncInterceptor.invokeNextAndExceptionally(InvocationContext, VisitableCommand, InvocationExceptionFunction)
.- Since:
- 9.0
- Author:
- Dan Berindei
-
Method Summary
Modifier and TypeMethodDescriptiondefault 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 newInvocationStage
, or throw an exception.apply
(InvocationContext rCtx, C rCommand, Throwable throwable) Process the result from a successful invocation stage and either return a simple value, return a newInvocationStage
, or throw an exception.
-
Method Details
-
apply
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, C 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<C extends VisitableCommand>
- Throws:
Throwable
-