Package org.infinispan.interceptors.base
Class BaseCustomInterceptor
- java.lang.Object
-
- org.infinispan.commands.AbstractVisitor
-
- org.infinispan.interceptors.base.CommandInterceptor
-
- org.infinispan.interceptors.base.BaseCustomInterceptor
-
- All Implemented Interfaces:
org.infinispan.commands.Visitor
,AsyncInterceptor
@Deprecated public class BaseCustomInterceptor extends CommandInterceptor
Deprecated.Since 9.0, useBaseCustomAsyncInterceptor
instead.Anyone using theAdvancedCache.addInterceptor(CommandInterceptor, int)
method (or any of its overloaded forms) or registering custom interceptors via XML should extend this base class when creating their own custom interceptors.As of Infinispan 5.1, annotations on custom interceptors, including
Inject
,Start
andStop
will not be respected and callbacks will not be made.Instead, custom interceptor authors should extend this base class to gain access to
Cache
andEmbeddedCacheManager
, from which other components may be accessed. Further, lifecycle should be implemented by overridingstart()
andstop()
as defined in this class.- Author:
- Manik Surtani
-
-
Field Summary
Fields Modifier and Type Field Description protected Cache<?,?>
cache
Deprecated.protected EmbeddedCacheManager
embeddedCacheManager
Deprecated.-
Fields inherited from class org.infinispan.interceptors.base.CommandInterceptor
cacheConfiguration
-
-
Constructor Summary
Constructors Constructor Description BaseCustomInterceptor()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
start()
Deprecated.protected void
stop()
Deprecated.-
Methods inherited from class org.infinispan.interceptors.base.CommandInterceptor
getCacheWithFlags, getLockAcquisitionTimeout, getLog, getNext, handleDefault, hasNext, hasSkipLocking, invokeNextInterceptor, setNext, setNextInterceptor, visitCommand
-
Methods inherited from class org.infinispan.commands.AbstractVisitor
visitClearCommand, visitCollection, visitCommitCommand, visitComputeCommand, visitComputeIfAbsentCommand, visitDistributedExecuteCommand, visitEntrySetCommand, visitEvictCommand, visitGetAllCommand, visitGetCacheEntryCommand, visitGetKeysInGroupCommand, visitGetKeyValueCommand, visitInvalidateCommand, visitInvalidateL1Command, visitKeySetCommand, visitLockControlCommand, visitPrepareCommand, visitPutKeyValueCommand, visitPutMapCommand, visitReadOnlyKeyCommand, visitReadOnlyManyCommand, visitReadWriteKeyCommand, visitReadWriteKeyValueCommand, visitReadWriteManyCommand, visitReadWriteManyEntriesCommand, visitRemoveCommand, visitReplaceCommand, visitRollbackCommand, visitSizeCommand, visitUnknownCommand, visitWriteOnlyKeyCommand, visitWriteOnlyKeyValueCommand, visitWriteOnlyManyCommand, visitWriteOnlyManyEntriesCommand
-
-
-
-
Field Detail
-
embeddedCacheManager
protected EmbeddedCacheManager embeddedCacheManager
Deprecated.
-
cache
protected Cache<?,?> cache
Deprecated.
-
-