Package org.infinispan.interceptors
Interface AsyncInterceptor
-
- All Known Implementing Classes:
AbstractLockingInterceptor,AbstractTxLockingInterceptor,BaseAsyncInterceptor,BaseBackupInterceptor,BaseCustomAsyncInterceptor,BaseCustomInterceptor,BaseDistributionInterceptor,org.infinispan.interceptors.impl.BaseRpcInterceptor,org.infinispan.interceptors.impl.BaseStateTransferInterceptor,BiasedScatteredDistributionInterceptor,CacheUsageInterceptor,org.infinispan.interceptors.impl.ClusteringInterceptor,CommandInterceptor,DDAsyncInterceptor,DistributionBulkInterceptor,org.infinispan.interceptors.impl.EntryWrappingInterceptor,ExtendedStatisticInterceptor,L1LastChanceInterceptor,L1NonTxInterceptor,L1TxInterceptor,NonTransactionalBackupInterceptor,NonTransactionalLockingInterceptor,NonTxDistributionInterceptor,OptimisticBackupInterceptor,OptimisticLockingInterceptor,PessimisticBackupInterceptor,PessimisticLockingInterceptor,PrePostProcessingCommandInterceptor,ScatteredDistributionInterceptor,StateTransferInterceptor,TotalOrderDistributionInterceptor,TotalOrderInterceptor,TotalOrderStateTransferInterceptor,TotalOrderVersionedDistributionInterceptor,TotalOrderVersionedEntryWrappingInterceptor,TransactionSynchronizerInterceptor,TriangleDistributionInterceptor,TxDistributionInterceptor,VersionedDistributionInterceptor,org.infinispan.interceptors.impl.VersionedEntryWrappingInterceptor
public interface AsyncInterceptorInterface for sequential interceptors.- Since:
- 9.0
- Author:
- Dan Berindei
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsetNextInterceptor(AsyncInterceptor interceptorStage)Sets up the interceptor.ObjectvisitCommand(InvocationContext ctx, org.infinispan.commands.VisitableCommand command)Perform some work for a command invocation.
-
-
-
Method Detail
-
visitCommand
Object visitCommand(InvocationContext ctx, org.infinispan.commands.VisitableCommand command) throws Throwable
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
InvocationStagecreated by theBaseAsyncInterceptormethods. - Throws:
Throwable
-
setNextInterceptor
void setNextInterceptor(AsyncInterceptor interceptorStage)
Sets up the interceptor. Do not call explicitly.
-
-