org.infinispan.interceptors
Class DeadlockDetectingInterceptor
java.lang.Object
org.infinispan.commands.AbstractVisitor
org.infinispan.interceptors.base.CommandInterceptor
org.infinispan.interceptors.DeadlockDetectingInterceptor
- All Implemented Interfaces:
- Visitor
public class DeadlockDetectingInterceptor
- extends CommandInterceptor
This interceptor populates the DeadlockDetectingGlobalTransaction
with
appropriate information needed in order to accomplish deadlock detection. It MUST process populate data before the
replication takes place, so it will do all the tasks before calling CommandInterceptor.invokeNextInterceptor(org.infinispan.context.InvocationContext,
org.infinispan.commands.VisitableCommand)
.
Note: for local caches, deadlock detection dos NOT work for aggregate operations (clear, putAll).
- Since:
- 4.0
- Author:
- Mircea.Markus@jboss.com
Methods inherited from class org.infinispan.commands.AbstractVisitor |
visitClearCommand, visitCollection, visitCommitCommand, visitEntrySetCommand, visitEvictCommand, visitGetKeyValueCommand, visitInvalidateCommand, visitKeySetCommand, visitLockControlCommand, visitPutMapCommand, visitSizeCommand, visitValuesCommand |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DeadlockDetectingInterceptor
public DeadlockDetectingInterceptor()
init
public void init(TransactionTable txTable,
LockManager lockManager,
TransactionManager txManager,
DistributionManager distributionManager)
start
public void start()
- Only does a sanity check.
visitPutKeyValueCommand
public Object visitPutKeyValueCommand(InvocationContext ctx,
PutKeyValueCommand command)
throws Throwable
- Specified by:
visitPutKeyValueCommand
in interface Visitor
- Overrides:
visitPutKeyValueCommand
in class AbstractVisitor
- Throws:
Throwable
visitRemoveCommand
public Object visitRemoveCommand(InvocationContext ctx,
RemoveCommand command)
throws Throwable
- Specified by:
visitRemoveCommand
in interface Visitor
- Overrides:
visitRemoveCommand
in class AbstractVisitor
- Throws:
Throwable
visitReplaceCommand
public Object visitReplaceCommand(InvocationContext ctx,
ReplaceCommand command)
throws Throwable
- Specified by:
visitReplaceCommand
in interface Visitor
- Overrides:
visitReplaceCommand
in class AbstractVisitor
- Throws:
Throwable
visitPrepareCommand
public Object visitPrepareCommand(TxInvocationContext ctx,
PrepareCommand command)
throws Throwable
- Specified by:
visitPrepareCommand
in interface Visitor
- Overrides:
visitPrepareCommand
in class AbstractVisitor
- Throws:
Throwable
visitRollbackCommand
public Object visitRollbackCommand(TxInvocationContext ctx,
RollbackCommand command)
throws Throwable
- Specified by:
visitRollbackCommand
in interface Visitor
- Overrides:
visitRollbackCommand
in class AbstractVisitor
- Throws:
Throwable
Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.