Package org.infinispan.interceptors
Interface AsyncInterceptor
-
- All Known Implementing Classes:
AbstractLockingInterceptor
,AbstractTxLockingInterceptor
,BaseAsyncInterceptor
,BaseBackupInterceptor
,BaseCustomAsyncInterceptor
,BaseCustomInterceptor
,BaseDistributionInterceptor
,BaseRpcInterceptor
,BaseStateTransferInterceptor
,BatchingInterceptor
,BiasedEntryWrappingInterceptor
,BiasedScatteredDistributionInterceptor
,CacheLoaderInterceptor
,CacheMgmtInterceptor
,CacheUsageInterceptor
,CacheWriterInterceptor
,CallInterceptor
,ClusteredCacheLoaderInterceptor
,ClusteringInterceptor
,CommandInterceptor
,DDAsyncInterceptor
,DistCacheWriterInterceptor
,DistributionBulkInterceptor
,EntryWrappingInterceptor
,ExtendedStatisticInterceptor
,GroupingInterceptor
,InvalidationInterceptor
,InvocationContextInterceptor
,IsMarshallableInterceptor
,JmxStatsCommandInterceptor
,L1LastChanceInterceptor
,L1NonTxInterceptor
,L1TxInterceptor
,NonTransactionalBackupInterceptor
,NonTransactionalLockingInterceptor
,NonTxDistributionInterceptor
,NotificationInterceptor
,OptimisticBackupInterceptor
,OptimisticLockingInterceptor
,PartitionHandlingInterceptor
,PassivationWriterInterceptor
,PessimisticBackupInterceptor
,PessimisticLockingInterceptor
,PrefetchInterceptor
,PrePostProcessingCommandInterceptor
,QueryInterceptor
,RetryingEntryWrappingInterceptor
,ScatteredCacheWriterInterceptor
,ScatteredDistributionInterceptor
,StateTransferInterceptor
,TotalOrderDistributionInterceptor
,TotalOrderInterceptor
,TotalOrderStateTransferInterceptor
,TotalOrderVersionedDistributionInterceptor
,TotalOrderVersionedEntryWrappingInterceptor
,TransactionalExceptionEvictionInterceptor
,TransactionalStoreInterceptor
,TransactionSynchronizerInterceptor
,TriangleDistributionInterceptor
,TxDistributionInterceptor
,TxInterceptor
,TxQueryInterceptor
,VersionedDistributionInterceptor
,VersionedEntryWrappingInterceptor
,VersionInterceptor
public interface AsyncInterceptor
Interface for sequential interceptors.- Since:
- 9.0
- Author:
- Dan Berindei
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
setNextInterceptor(AsyncInterceptor interceptorStage)
Sets up the interceptor.Object
visitCommand(InvocationContext ctx, VisitableCommand command)
Perform some work for a command invocation.
-
-
-
Method Detail
-
visitCommand
Object visitCommand(InvocationContext ctx, 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
InvocationStage
created by theBaseAsyncInterceptor
methods. - Throws:
Throwable
-
setNextInterceptor
void setNextInterceptor(AsyncInterceptor interceptorStage)
Sets up the interceptor. Do not call explicitly.
-
-