@Deprecated public class BaseCustomInterceptor extends CommandInterceptor
AdvancedCache.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
and Stop
will not be respected and callbacks will not be made.
Instead, custom interceptor authors should extend this base class to gain access to Cache
and EmbeddedCacheManager
,
from which other components may be accessed. Further, lifecycle should be implemented by overriding start()
and stop()
as defined in this class.Modifier and Type | Field and Description |
---|---|
protected Cache<?,?> |
cache
Deprecated.
|
protected EmbeddedCacheManager |
embeddedCacheManager
Deprecated.
|
cacheConfiguration
Constructor and Description |
---|
BaseCustomInterceptor()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
start()
Deprecated.
|
protected void |
stop()
Deprecated.
|
getCacheWithFlags, getLockAcquisitionTimeout, getLog, getNext, handleDefault, hasNext, hasSkipLocking, injectConfiguration, invokeNextInterceptor, setNext, setNextInterceptor, visitCommand
visitApplyDeltaCommand, visitClearCommand, visitCollection, visitCommitCommand, 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
protected Cache<?,?> cache
protected EmbeddedCacheManager embeddedCacheManager
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.