public class CacheLoaderInterceptor extends JmxStatsCommandInterceptor
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
enabled |
protected EntryFactory |
entryFactory |
protected CacheNotifier |
notifier |
protected PersistenceManager |
persistenceManager |
cacheConfiguration| Constructor and Description |
|---|
CacheLoaderInterceptor() |
checkStatisticsUsed, getStatisticsEnabled, setStatisticsEnabledgetLockAcquisitionTimeout, getNext, handleDefault, hasNext, hasSkipLocking, injectConfiguration, invokeNextInterceptor, setNextvisitClearCommand, visitCollection, visitCommitCommand, visitDistributedExecuteCommand, visitEvictCommand, visitInvalidateL1Command, visitLockControlCommand, visitPrepareCommand, visitPutMapCommand, visitRollbackCommand, visitUnknownCommandprotected 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, ClusteringDependentLogic cdl, DataContainer dataContainer)
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 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 visitSizeCommand(InvocationContext ctx, SizeCommand command) throws Throwable
visitSizeCommand in interface VisitorvisitSizeCommand in class AbstractVisitorThrowablepublic Object visitKeySetCommand(InvocationContext ctx, KeySetCommand command) throws Throwable
visitKeySetCommand in interface VisitorvisitKeySetCommand in class AbstractVisitorThrowablepublic Object visitEntrySetCommand(InvocationContext ctx, EntrySetCommand command) throws Throwable
visitEntrySetCommand in interface VisitorvisitEntrySetCommand in class AbstractVisitorThrowablepublic Object visitValuesCommand(InvocationContext ctx, ValuesCommand command) throws Throwable
visitValuesCommand in interface VisitorvisitValuesCommand in class AbstractVisitorThrowableprotected boolean isDeltaWrite(Set<Flag> flags)
protected boolean canLoad(Object key)
protected final Boolean loadIfNeeded(InvocationContext ctx, Object key, boolean isRetrieval, FlagAffectedCommand cmd) throws Throwable
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 loaderThrowableprotected void afterSuccessfullyLoaded(CacheEntry wrappedEntry)
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 © 2014 JBoss, a division of Red Hat. All Rights Reserved.