public class TxInvalidationInterceptor
extends org.infinispan.interceptors.base.BaseRpcInterceptor
implements org.infinispan.jmx.JmxStatisticsExposer
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 |
TxInvalidationInterceptor.InvalidationFilterVisitor |
Constructor and Description |
---|
TxInvalidationInterceptor() |
Modifier and Type | Method and Description |
---|---|
long |
getInvalidations() |
protected org.infinispan.util.logging.Log |
getLog() |
boolean |
getStatisticsEnabled() |
void |
injectDependencies(org.infinispan.commands.CommandsFactory commandsFactory) |
void |
resetStatistics() |
void |
setStatisticsEnabled(boolean enabled) |
Object |
visitClearCommand(org.infinispan.context.InvocationContext ctx,
org.infinispan.commands.write.ClearCommand command) |
Object |
visitLockControlCommand(org.infinispan.context.impl.TxInvocationContext ctx,
org.infinispan.commands.control.LockControlCommand command) |
Object |
visitPrepareCommand(org.infinispan.context.impl.TxInvocationContext ctx,
org.infinispan.commands.tx.PrepareCommand command) |
Object |
visitPutKeyValueCommand(org.infinispan.context.InvocationContext ctx,
org.infinispan.commands.write.PutKeyValueCommand command) |
Object |
visitPutMapCommand(org.infinispan.context.InvocationContext ctx,
org.infinispan.commands.write.PutMapCommand command) |
Object |
visitRemoveCommand(org.infinispan.context.InvocationContext ctx,
org.infinispan.commands.write.RemoveCommand command) |
Object |
visitReplaceCommand(org.infinispan.context.InvocationContext ctx,
org.infinispan.commands.write.ReplaceCommand command) |
getSelfDeliverFilter, init, inject, isLocalModeForced, isSyncCommitPhase, isSynchronous, shouldInvokeRemoteTxCommand, shouldTotalOrderRollbackBeInvokedRemotely, totalOrderPrepare, totalOrderTxCommit, totalOrderTxRollback, transactionRemotelyPrepared
getLockAcquisitionTimeout, getNext, handleDefault, hasNext, hasSkipLocking, injectConfiguration, invokeNextInterceptor, setNext
visitApplyDeltaCommand, visitCollection, visitCommitCommand, visitDistributedExecuteCommand, visitEntryRetrievalCommand, visitEntrySetCommand, visitEvictCommand, visitGetAllCommand, visitGetCacheEntryCommand, visitGetKeysInGroupCommand, visitGetKeyValueCommand, visitInvalidateCommand, visitInvalidateL1Command, visitKeySetCommand, visitRollbackCommand, visitSizeCommand, visitUnknownCommand, visitValuesCommand
protected org.infinispan.util.logging.Log getLog()
getLog
in class org.infinispan.interceptors.base.CommandInterceptor
public void injectDependencies(org.infinispan.commands.CommandsFactory commandsFactory)
public Object visitPutKeyValueCommand(org.infinispan.context.InvocationContext ctx, org.infinispan.commands.write.PutKeyValueCommand command) throws Throwable
visitPutKeyValueCommand
in interface org.infinispan.commands.Visitor
visitPutKeyValueCommand
in class org.infinispan.commands.AbstractVisitor
Throwable
public Object visitReplaceCommand(org.infinispan.context.InvocationContext ctx, org.infinispan.commands.write.ReplaceCommand command) throws Throwable
visitReplaceCommand
in interface org.infinispan.commands.Visitor
visitReplaceCommand
in class org.infinispan.commands.AbstractVisitor
Throwable
public Object visitRemoveCommand(org.infinispan.context.InvocationContext ctx, org.infinispan.commands.write.RemoveCommand command) throws Throwable
visitRemoveCommand
in interface org.infinispan.commands.Visitor
visitRemoveCommand
in class org.infinispan.commands.AbstractVisitor
Throwable
public Object visitClearCommand(org.infinispan.context.InvocationContext ctx, org.infinispan.commands.write.ClearCommand command) throws Throwable
visitClearCommand
in interface org.infinispan.commands.Visitor
visitClearCommand
in class org.infinispan.commands.AbstractVisitor
Throwable
public Object visitPutMapCommand(org.infinispan.context.InvocationContext ctx, org.infinispan.commands.write.PutMapCommand command) throws Throwable
visitPutMapCommand
in interface org.infinispan.commands.Visitor
visitPutMapCommand
in class org.infinispan.commands.AbstractVisitor
Throwable
public Object visitPrepareCommand(org.infinispan.context.impl.TxInvocationContext ctx, org.infinispan.commands.tx.PrepareCommand command) throws Throwable
visitPrepareCommand
in interface org.infinispan.commands.Visitor
visitPrepareCommand
in class org.infinispan.commands.AbstractVisitor
Throwable
public Object visitLockControlCommand(org.infinispan.context.impl.TxInvocationContext ctx, org.infinispan.commands.control.LockControlCommand command) throws Throwable
visitLockControlCommand
in interface org.infinispan.commands.Visitor
visitLockControlCommand
in class org.infinispan.commands.AbstractVisitor
Throwable
public void resetStatistics()
resetStatistics
in interface org.infinispan.jmx.JmxStatisticsExposer
public boolean getStatisticsEnabled()
getStatisticsEnabled
in interface org.infinispan.jmx.JmxStatisticsExposer
public void setStatisticsEnabled(boolean enabled)
setStatisticsEnabled
in interface org.infinispan.jmx.JmxStatisticsExposer
public long getInvalidations()
Copyright © 2001-2017 Red Hat, Inc. All Rights Reserved.