public class InvalidationInterceptor extends BaseRpcInterceptor
InvalidateCommand
on the remote caches containing all keys modified. This allows the remote
cache to look up the value in a shared cache loader which would have been updated with the changes.Modifier and Type | Class and Description |
---|---|
static class |
InvalidationInterceptor.InvalidationFilterVisitor |
Modifier and Type | Field and Description |
---|---|
protected Map<GlobalTransaction,List<VisitableCommand>> |
txMods |
defaultSynchronous, rpcManager
configuration
Constructor and Description |
---|
InvalidationInterceptor() |
Modifier and Type | Method and Description |
---|---|
long |
getInvalidations() |
protected Log |
getLog() |
boolean |
getStatisticsEnabled() |
void |
injectDependencies(CommandsFactory commandsFactory) |
protected Object |
invalidateAcrossCluster(boolean synchronous,
InvocationContext ctx,
Object[] keys,
boolean useFuture,
Object retvalForFuture) |
void |
resetStatistics() |
void |
setStatisticsEnabled(boolean enabled) |
Object |
visitClearCommand(InvocationContext ctx,
ClearCommand command) |
Object |
visitPrepareCommand(TxInvocationContext ctx,
PrepareCommand command) |
Object |
visitPutKeyValueCommand(InvocationContext ctx,
PutKeyValueCommand command) |
Object |
visitPutMapCommand(InvocationContext ctx,
PutMapCommand command) |
Object |
visitRemoveCommand(InvocationContext ctx,
RemoveCommand command) |
Object |
visitReplaceCommand(InvocationContext ctx,
ReplaceCommand command) |
init, init, isLocalModeForced, isSynchronous, shouldInvokeRemoteTxCommand, visitLockControlCommand
getNext, handleDefault, hasNext, invokeNextInterceptor, setNext
visitApplyDeltaCommand, visitCollection, visitCommitCommand, visitDistributedExecuteCommand, visitEntrySetCommand, visitEvictCommand, visitGetKeyValueCommand, visitInvalidateCommand, visitInvalidateL1Command, visitKeySetCommand, visitRollbackCommand, visitSizeCommand, visitUnknownCommand, visitValuesCommand
protected Map<GlobalTransaction,List<VisitableCommand>> txMods
protected Log getLog()
getLog
in class CommandInterceptor
public void injectDependencies(CommandsFactory commandsFactory)
public Object visitPutKeyValueCommand(InvocationContext ctx, PutKeyValueCommand command) throws Throwable
visitPutKeyValueCommand
in interface Visitor
visitPutKeyValueCommand
in class AbstractVisitor
Throwable
public Object visitReplaceCommand(InvocationContext ctx, ReplaceCommand command) throws Throwable
visitReplaceCommand
in interface Visitor
visitReplaceCommand
in class AbstractVisitor
Throwable
public Object visitRemoveCommand(InvocationContext ctx, RemoveCommand command) throws Throwable
visitRemoveCommand
in interface Visitor
visitRemoveCommand
in class AbstractVisitor
Throwable
public Object visitClearCommand(InvocationContext ctx, ClearCommand command) throws Throwable
visitClearCommand
in interface Visitor
visitClearCommand
in class AbstractVisitor
Throwable
public Object visitPutMapCommand(InvocationContext ctx, PutMapCommand command) throws Throwable
visitPutMapCommand
in interface Visitor
visitPutMapCommand
in class AbstractVisitor
Throwable
public Object visitPrepareCommand(TxInvocationContext ctx, PrepareCommand command) throws Throwable
visitPrepareCommand
in interface Visitor
visitPrepareCommand
in class AbstractVisitor
Throwable
protected Object invalidateAcrossCluster(boolean synchronous, InvocationContext ctx, Object[] keys, boolean useFuture, Object retvalForFuture) throws Throwable
Throwable
public void resetStatistics()
public boolean getStatisticsEnabled()
public void setStatisticsEnabled(boolean enabled)
public long getInvalidations()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.