Package org.infinispan.interceptors.impl
Class CallInterceptor
- java.lang.Object
-
- org.infinispan.interceptors.BaseAsyncInterceptor
-
- org.infinispan.interceptors.impl.CallInterceptor
-
- All Implemented Interfaces:
AsyncInterceptor
public class CallInterceptor extends BaseAsyncInterceptor
Always at the end of the chain, directly in front of the cache. Simply calls into the cache using reflection. If the call resulted in a modification, add the Modification to the end of the modification list keyed by the current transaction.- Since:
- 9.0
- Author:
- Bela Ban, Mircea.Markus@jboss.com, Dan Berindei
-
-
Field Summary
-
Fields inherited from class org.infinispan.interceptors.BaseAsyncInterceptor
cacheConfiguration
-
-
Constructor Summary
Constructors Constructor Description CallInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
visitCommand(InvocationContext ctx, VisitableCommand command)
Perform some work for a command invocation.-
Methods inherited from class org.infinispan.interceptors.BaseAsyncInterceptor
asyncInvokeNext, asyncInvokeNext, asyncInvokeNext, asyncValue, delayedValue, delayedValue, invokeNext, invokeNextAndExceptionally, invokeNextAndFinally, invokeNextAndHandle, invokeNextThenAccept, invokeNextThenApply, isSuccessfullyDone, makeStage, setNextInterceptor, valueOrException
-
-
-
-
Method Detail
-
visitCommand
public Object visitCommand(InvocationContext ctx, VisitableCommand command) throws Throwable
Description copied from interface:AsyncInterceptor
Perform some work for a command invocation. The interceptor is responsible for invoking the next interceptor in the chain, usingBaseAsyncInterceptor.invokeNext(InvocationContext, VisitableCommand)
or the other methods inBaseAsyncInterceptor
.- Returns:
- Either a regular value, or an
InvocationStage
created by theBaseAsyncInterceptor
methods. - Throws:
Throwable
-
-