public class ActivationInterceptor extends CacheLoaderInterceptor
enabled, entryFactory, notifier, persistenceManager
cacheConfiguration
Constructor and Description |
---|
ActivationInterceptor() |
Modifier and Type | Method and Description |
---|---|
protected Log |
getLog() |
void |
inject(Configuration cfg,
ActivationManager activationManager,
ClusteringDependentLogic cdl,
DataContainer dataContainer) |
protected Boolean |
loadIfNeeded(InvocationContext ctx,
Object key,
boolean isRetrieval,
FlagAffectedCommand cmd)
Loads from the cache loader the entry for the given key.
|
protected void |
sendNotification(Object key,
Object value,
boolean pre,
InvocationContext ctx,
FlagAffectedCommand cmd) |
void |
start() |
Object |
visitPutMapCommand(InvocationContext ctx,
PutMapCommand command) |
canLoad, disableInterceptor, disableStore, forceLoad, getCacheLoaderLoads, getCacheLoaderMisses, getStores, injectDependencies, isDeltaWrite, resetStatistics, visitApplyDeltaCommand, visitEntrySetCommand, visitGetKeyValueCommand, visitInvalidateCommand, visitKeySetCommand, visitPutKeyValueCommand, visitRemoveCommand, visitReplaceCommand, visitSizeCommand, visitValuesCommand
checkStatisticsUsed, getStatisticsEnabled, setStatisticsEnabled
getLockAcquisitionTimeout, getNext, handleDefault, hasNext, hasSkipLocking, injectConfiguration, invokeNextInterceptor, setNext
visitClearCommand, visitCollection, visitCommitCommand, visitDistributedExecuteCommand, visitEvictCommand, visitInvalidateL1Command, visitLockControlCommand, visitPrepareCommand, visitRollbackCommand, visitUnknownCommand
protected Log getLog()
getLog
in class CacheLoaderInterceptor
public void inject(Configuration cfg, ActivationManager activationManager, ClusteringDependentLogic cdl, DataContainer dataContainer)
public void start()
public Object visitPutMapCommand(InvocationContext ctx, PutMapCommand command) throws Throwable
visitPutMapCommand
in interface Visitor
visitPutMapCommand
in class AbstractVisitor
Throwable
protected Boolean loadIfNeeded(InvocationContext ctx, Object key, boolean isRetrieval, FlagAffectedCommand cmd) throws Throwable
CacheLoaderInterceptor
loadIfNeeded
in class CacheLoaderInterceptor
ctx
- The current invocation's contextkey
- The key for the entry to look upisRetrieval
- Whether or not this was called in the scope of a getcmd
- The command that was called that now wants to query the cache loaderThrowable
protected void sendNotification(Object key, Object value, boolean pre, InvocationContext ctx, FlagAffectedCommand cmd)
sendNotification
in class CacheLoaderInterceptor
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.