public class CacheWriterInterceptor extends JmxStatsCommandInterceptor
| Modifier and Type | Class and Description |
|---|---|
class |
CacheWriterInterceptor.Updater |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
enabled |
protected PersistenceManager |
persistenceManager |
cacheConfiguration| Constructor and Description |
|---|
CacheWriterInterceptor() |
checkStatisticsUsed, getStatisticsEnabled, setStatisticsEnabledgetLockAcquisitionTimeout, getNext, handleDefault, hasNext, hasSkipLocking, injectConfiguration, invokeNextInterceptor, setNextvisitApplyDeltaCommand, visitCollection, visitDistributedExecuteCommand, visitEntrySetCommand, visitEvictCommand, visitGetKeyValueCommand, visitInvalidateCommand, visitInvalidateL1Command, visitKeySetCommand, visitLockControlCommand, visitRollbackCommand, visitSizeCommand, visitUnknownCommand, visitValuesCommandprotected PersistenceManager persistenceManager
protected volatile boolean enabled
protected Log getLog()
getLog in class CommandInterceptorprotected void init(PersistenceManager pm, InternalEntryFactory entryFactory, TransactionManager transactionManager, StreamingMarshaller marshaller)
protected void start()
public Object visitCommitCommand(TxInvocationContext ctx, CommitCommand command) throws Throwable
visitCommitCommand in interface VisitorvisitCommitCommand in class AbstractVisitorThrowablepublic Object visitPrepareCommand(TxInvocationContext ctx, PrepareCommand command) throws Throwable
visitPrepareCommand in interface VisitorvisitPrepareCommand in class AbstractVisitorThrowableprotected void commitCommand(TxInvocationContext ctx) throws Throwable
Throwablepublic Object visitRemoveCommand(InvocationContext ctx, RemoveCommand command) throws Throwable
visitRemoveCommand in interface VisitorvisitRemoveCommand in class AbstractVisitorThrowablepublic Object visitClearCommand(InvocationContext ctx, ClearCommand command) throws Throwable
visitClearCommand in interface VisitorvisitClearCommand in class AbstractVisitorThrowablepublic Object visitPutKeyValueCommand(InvocationContext ctx, PutKeyValueCommand command) throws Throwable
visitPutKeyValueCommand in interface VisitorvisitPutKeyValueCommand in class AbstractVisitorThrowablepublic Object visitReplaceCommand(InvocationContext ctx, ReplaceCommand command) throws Throwable
visitReplaceCommand in interface VisitorvisitReplaceCommand in class AbstractVisitorThrowablepublic Object visitPutMapCommand(InvocationContext ctx, PutMapCommand command) throws Throwable
visitPutMapCommand in interface VisitorvisitPutMapCommand in class AbstractVisitorThrowableprotected final void store(TxInvocationContext ctx) throws Throwable
Throwableprotected boolean isStoreEnabled()
protected boolean isStoreEnabled(FlagAffectedCommand command)
protected boolean isProperWriter(InvocationContext ctx, FlagAffectedCommand command, Object key)
public void resetStatistics()
JmxStatsCommandInterceptorresetStatistics in interface JmxStatisticsExposerresetStatistics in class JmxStatsCommandInterceptorpublic long getWritesToTheStores()
protected boolean skipSharedStores(InvocationContext ctx, Object key, FlagAffectedCommand command)
public void disableInterceptor()
Copyright © 2014 JBoss, a division of Red Hat. All rights reserved.