@Deprecated public class CacheLoaderInterceptor<K,V> extends JmxStatsCommandInterceptor
Modifier and Type | Field and Description |
---|---|
protected boolean |
enabled
Deprecated.
|
protected EntryFactory |
entryFactory
Deprecated.
|
protected CacheNotifier |
notifier
Deprecated.
|
protected PersistenceManager |
persistenceManager
Deprecated.
|
cacheConfiguration
Constructor and Description |
---|
CacheLoaderInterceptor()
Deprecated.
|
checkStatisticsUsed, getStatisticsEnabled, setStatisticsEnabled
getCacheWithFlags, getLockAcquisitionTimeout, getNext, handleDefault, hasNext, hasSkipLocking, injectConfiguration, invokeNextInterceptor, setNext
visitClearCommand, visitCollection, visitCommitCommand, visitDistributedExecuteCommand, visitEvictCommand, visitInvalidateL1Command, visitLockControlCommand, visitPrepareCommand, visitPutMapCommand, visitRollbackCommand, visitSizeCommand, visitUnknownCommand, visitWriteOnlyKeyCommand, visitWriteOnlyKeyValueCommand, visitWriteOnlyManyCommand, visitWriteOnlyManyEntriesCommand
protected PersistenceManager persistenceManager
protected CacheNotifier notifier
protected volatile boolean enabled
protected EntryFactory entryFactory
protected Log getLog()
getLog
in class CommandInterceptor
protected void injectDependencies(PersistenceManager clm, EntryFactory entryFactory, CacheNotifier notifier, TimeService timeService, InternalEntryFactory iceFactory, DataContainer<K,V> dataContainer, GroupManager groupManager, ExecutorService persistenceExecutor, Cache<K,V> cache)
public void start()
public Object visitApplyDeltaCommand(InvocationContext ctx, ApplyDeltaCommand command) throws Throwable
visitApplyDeltaCommand
in interface Visitor
visitApplyDeltaCommand
in class AbstractVisitor
Throwable
public Object visitPutKeyValueCommand(InvocationContext ctx, PutKeyValueCommand command) throws Throwable
visitPutKeyValueCommand
in interface Visitor
visitPutKeyValueCommand
in class AbstractVisitor
Throwable
public Object visitGetKeyValueCommand(InvocationContext ctx, GetKeyValueCommand command) throws Throwable
visitGetKeyValueCommand
in interface Visitor
visitGetKeyValueCommand
in class AbstractVisitor
Throwable
public Object visitGetCacheEntryCommand(InvocationContext ctx, GetCacheEntryCommand command) throws Throwable
visitGetCacheEntryCommand
in interface Visitor
visitGetCacheEntryCommand
in class AbstractVisitor
Throwable
public Object visitGetAllCommand(InvocationContext ctx, GetAllCommand command) throws Throwable
visitGetAllCommand
in interface Visitor
visitGetAllCommand
in class AbstractVisitor
Throwable
public Object visitInvalidateCommand(InvocationContext ctx, InvalidateCommand command) throws Throwable
visitInvalidateCommand
in interface Visitor
visitInvalidateCommand
in class AbstractVisitor
Throwable
public Object visitRemoveCommand(InvocationContext ctx, RemoveCommand command) throws Throwable
visitRemoveCommand
in interface Visitor
visitRemoveCommand
in class AbstractVisitor
Throwable
public Object visitReplaceCommand(InvocationContext ctx, ReplaceCommand command) throws Throwable
visitReplaceCommand
in interface Visitor
visitReplaceCommand
in class AbstractVisitor
Throwable
public Object visitGetKeysInGroupCommand(InvocationContext ctx, GetKeysInGroupCommand command) throws Throwable
visitGetKeysInGroupCommand
in interface Visitor
visitGetKeysInGroupCommand
in class AbstractVisitor
Throwable
public CacheSet<CacheEntry<K,V>> visitEntrySetCommand(InvocationContext ctx, EntrySetCommand command) throws Throwable
visitEntrySetCommand
in interface Visitor
visitEntrySetCommand
in class AbstractVisitor
Throwable
public CacheSet<K> visitKeySetCommand(InvocationContext ctx, KeySetCommand command) throws Throwable
visitKeySetCommand
in interface Visitor
visitKeySetCommand
in class AbstractVisitor
Throwable
public Object visitReadOnlyKeyCommand(InvocationContext ctx, ReadOnlyKeyCommand command) throws Throwable
visitReadOnlyKeyCommand
in interface Visitor
visitReadOnlyKeyCommand
in class AbstractVisitor
Throwable
public Object visitReadOnlyManyCommand(InvocationContext ctx, ReadOnlyManyCommand command) throws Throwable
visitReadOnlyManyCommand
in interface Visitor
visitReadOnlyManyCommand
in class AbstractVisitor
Throwable
public Object visitReadWriteKeyCommand(InvocationContext ctx, ReadWriteKeyCommand command) throws Throwable
visitReadWriteKeyCommand
in interface Visitor
visitReadWriteKeyCommand
in class AbstractVisitor
Throwable
public Object visitReadWriteKeyValueCommand(InvocationContext ctx, ReadWriteKeyValueCommand command) throws Throwable
visitReadWriteKeyValueCommand
in interface Visitor
visitReadWriteKeyValueCommand
in class AbstractVisitor
Throwable
public Object visitReadWriteManyCommand(InvocationContext ctx, ReadWriteManyCommand command) throws Throwable
visitReadWriteManyCommand
in interface Visitor
visitReadWriteManyCommand
in class AbstractVisitor
Throwable
public Object visitReadWriteManyEntriesCommand(InvocationContext ctx, ReadWriteManyEntriesCommand command) throws Throwable
visitReadWriteManyEntriesCommand
in interface Visitor
visitReadWriteManyEntriesCommand
in class AbstractVisitor
Throwable
protected final boolean isConditional(WriteCommand cmd)
protected final boolean hasSkipLoadFlag(LocalFlagAffectedCommand cmd)
protected boolean canLoad(Object key)
protected final Boolean loadIfNeeded(InvocationContext ctx, Object key, FlagAffectedCommand cmd)
ctx
- The current invocation's contextkey
- The key for the entry to look upcmd
- The command that was called that now wants to query the cache loaderThrowable
protected boolean skipLoadForFunctionalWriteCommand(WriteCommand cmd, Object key, InvocationContext ctx)
protected boolean skipLoadForWriteCommand(WriteCommand cmd, Object key, InvocationContext ctx)
protected void sendNotification(Object key, Object value, boolean pre, InvocationContext ctx, FlagAffectedCommand cmd)
public long getCacheLoaderLoads()
public long getCacheLoaderMisses()
public void resetStatistics()
JmxStatsCommandInterceptor
resetStatistics
in interface JmxStatisticsExposer
resetStatistics
in class JmxStatsCommandInterceptor
public Collection<String> getStores()
public void disableStore(String storeType)
public void disableInterceptor()
Copyright © 2017 JBoss, a division of Red Hat. All rights reserved.