Interface AsyncInterceptor
- All Known Implementing Classes:
AbstractIracLocalSiteInterceptor, AbstractLockingInterceptor, AbstractTxLockingInterceptor, BaseAsyncInterceptor, BaseBackupInterceptor, BaseCustomAsyncInterceptor, BaseDistributionInterceptor, BaseRpcInterceptor, BaseStateTransferInterceptor, BatchingInterceptor, CacheLoaderInterceptor, CacheMgmtInterceptor, CacheWriterInterceptor, CallInterceptor, ClusteredCacheLoaderInterceptor, ClusteringInterceptor, DDAsyncInterceptor, DistCacheWriterInterceptor, EntryWrappingInterceptor, InvalidationCacheLoaderInterceptor, InvalidationCacheWriterInterceptor, InvalidationInterceptor, InvocationContextInterceptor, IsMarshallableInterceptor, JmxStatsCommandInterceptor, L1LastChanceInterceptor, L1NonTxInterceptor, L1TxInterceptor, NonTransactionalBackupInterceptor, NonTransactionalLockingInterceptor, NonTxDistributionInterceptor, NonTxIracLocalSiteInterceptor, NonTxIracRemoteSiteInterceptor, NotificationInterceptor, OptimisticBackupInterceptor, OptimisticLockingInterceptor, OptimisticTxIracLocalSiteInterceptor, PartitionHandlingInterceptor, PassivationCacheLoaderInterceptor, PassivationClusteredCacheLoaderInterceptor, PassivationWriterInterceptor, PessimisticBackupInterceptor, PessimisticLockingInterceptor, PessimisticTxIracLocalInterceptor, StateTransferInterceptor, TransactionalExceptionEvictionInterceptor, TransactionalStoreInterceptor, TransactionSynchronizerInterceptor, TriangleDistributionInterceptor, TxDistributionInterceptor, TxInterceptor, VersionedDistributionInterceptor, VersionedEntryWrappingInterceptor, VersionInterceptor
@Experimental
public interface AsyncInterceptor
Interface for sequential interceptors.
- Since:
- 9.0
- Author:
- Dan Berindei
-
Method Summary
Modifier and TypeMethodDescriptionvoidsetNextInterceptor(AsyncInterceptor interceptorStage) Sets up the interceptor.visitCommand(InvocationContext ctx, VisitableCommand command) Perform some work for a command invocation.
-
Method Details
-
visitCommand
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
Sets up the interceptor. Do not call explicitly.
-