@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, setStatisticsEnabledgetCacheWithFlags, getLockAcquisitionTimeout, getNext, handleDefault, hasNext, hasSkipLocking, injectConfiguration, invokeNextInterceptor, setNextvisitClearCommand, visitCollection, visitCommitCommand, visitDistributedExecuteCommand, visitEvictCommand, visitInvalidateL1Command, visitLockControlCommand, visitPrepareCommand, visitPutMapCommand, visitRollbackCommand, visitSizeCommand, visitUnknownCommand, visitWriteOnlyKeyCommand, visitWriteOnlyKeyValueCommand, visitWriteOnlyManyCommand, visitWriteOnlyManyEntriesCommandprotected PersistenceManager persistenceManager
protected CacheNotifier notifier
protected volatile boolean enabled
protected EntryFactory entryFactory
protected Log getLog()
getLog in class CommandInterceptorprotected 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 VisitorvisitApplyDeltaCommand in class AbstractVisitorThrowablepublic Object visitPutKeyValueCommand(InvocationContext ctx, PutKeyValueCommand command) throws Throwable
visitPutKeyValueCommand in interface VisitorvisitPutKeyValueCommand in class AbstractVisitorThrowablepublic Object visitGetKeyValueCommand(InvocationContext ctx, GetKeyValueCommand command) throws Throwable
visitGetKeyValueCommand in interface VisitorvisitGetKeyValueCommand in class AbstractVisitorThrowablepublic Object visitGetCacheEntryCommand(InvocationContext ctx, GetCacheEntryCommand command) throws Throwable
visitGetCacheEntryCommand in interface VisitorvisitGetCacheEntryCommand in class AbstractVisitorThrowablepublic Object visitGetAllCommand(InvocationContext ctx, GetAllCommand command) throws Throwable
visitGetAllCommand in interface VisitorvisitGetAllCommand in class AbstractVisitorThrowablepublic Object visitInvalidateCommand(InvocationContext ctx, InvalidateCommand command) throws Throwable
visitInvalidateCommand in interface VisitorvisitInvalidateCommand in class AbstractVisitorThrowablepublic Object visitRemoveCommand(InvocationContext ctx, RemoveCommand command) throws Throwable
visitRemoveCommand in interface VisitorvisitRemoveCommand in class AbstractVisitorThrowablepublic Object visitReplaceCommand(InvocationContext ctx, ReplaceCommand command) throws Throwable
visitReplaceCommand in interface VisitorvisitReplaceCommand in class AbstractVisitorThrowablepublic Object visitGetKeysInGroupCommand(InvocationContext ctx, GetKeysInGroupCommand command) throws Throwable
visitGetKeysInGroupCommand in interface VisitorvisitGetKeysInGroupCommand in class AbstractVisitorThrowablepublic CacheSet<CacheEntry<K,V>> visitEntrySetCommand(InvocationContext ctx, EntrySetCommand command) throws Throwable
visitEntrySetCommand in interface VisitorvisitEntrySetCommand in class AbstractVisitorThrowablepublic CacheSet<K> visitKeySetCommand(InvocationContext ctx, KeySetCommand command) throws Throwable
visitKeySetCommand in interface VisitorvisitKeySetCommand in class AbstractVisitorThrowablepublic Object visitReadOnlyKeyCommand(InvocationContext ctx, ReadOnlyKeyCommand command) throws Throwable
visitReadOnlyKeyCommand in interface VisitorvisitReadOnlyKeyCommand in class AbstractVisitorThrowablepublic Object visitReadOnlyManyCommand(InvocationContext ctx, ReadOnlyManyCommand command) throws Throwable
visitReadOnlyManyCommand in interface VisitorvisitReadOnlyManyCommand in class AbstractVisitorThrowablepublic Object visitReadWriteKeyCommand(InvocationContext ctx, ReadWriteKeyCommand command) throws Throwable
visitReadWriteKeyCommand in interface VisitorvisitReadWriteKeyCommand in class AbstractVisitorThrowablepublic Object visitReadWriteKeyValueCommand(InvocationContext ctx, ReadWriteKeyValueCommand command) throws Throwable
visitReadWriteKeyValueCommand in interface VisitorvisitReadWriteKeyValueCommand in class AbstractVisitorThrowablepublic Object visitReadWriteManyCommand(InvocationContext ctx, ReadWriteManyCommand command) throws Throwable
visitReadWriteManyCommand in interface VisitorvisitReadWriteManyCommand in class AbstractVisitorThrowablepublic Object visitReadWriteManyEntriesCommand(InvocationContext ctx, ReadWriteManyEntriesCommand command) throws Throwable
visitReadWriteManyEntriesCommand in interface VisitorvisitReadWriteManyEntriesCommand in class AbstractVisitorThrowableprotected 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 loaderThrowableprotected 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()
JmxStatsCommandInterceptorresetStatistics in interface JmxStatisticsExposerresetStatistics in class JmxStatsCommandInterceptorpublic Collection<String> getStores()
public void disableStore(String storeType)
public void disableInterceptor()
Copyright © 2024 JBoss, a division of Red Hat. All rights reserved.