org.jboss.cache.commands.legacy.write
Class PessMoveCommand
java.lang.Object
org.jboss.cache.commands.read.AbstractDataCommand
org.jboss.cache.commands.write.MoveCommand
org.jboss.cache.commands.legacy.write.PessMoveCommand
- All Implemented Interfaces:
- DataCommand, ReversibleCommand, ReplicableCommand, VisitableCommand, WriteCommand
Deprecated. will be removed along with optimistic and pessimistic locking.
@Deprecated
public class PessMoveCommand
- extends MoveCommand
- implements ReversibleCommand
A version of MoveCommand
which can be rolled back, for use with
pessimistic locking where changes are made directly on the data structures and may need to be reversed.
- Since:
- 3.0
- Author:
- Manik Surtani (manik AT jboss DOT org)
Method Summary |
Object |
perform(InvocationContext ctx)
Deprecated. Moves a node, from fqn to to, and returns null. |
void |
rollback()
Deprecated. Reverses a command that has already been invoked. |
Methods inherited from class org.jboss.cache.commands.write.MoveCommand |
acceptVisitor, equals, getCommandId, getGlobalTransaction, getParameters, getTo, hashCode, initialize, setGlobalTransaction, setParameters, toString |
PessMoveCommand
public PessMoveCommand()
- Deprecated.
PessMoveCommand
public PessMoveCommand(Fqn from,
Fqn to)
- Deprecated.
perform
public Object perform(InvocationContext ctx)
- Deprecated.
- Moves a node, from fqn to to, and returns null.
- Specified by:
perform
in interface ReplicableCommand
- Overrides:
perform
in class MoveCommand
- Parameters:
ctx
- invocation context
- Returns:
- null
rollback
public void rollback()
- Deprecated.
- Description copied from interface:
ReversibleCommand
- Reverses a command that has already been invoked.
Important: this method will be invoked at the end of interceptors chain. It should never be called directly from
a custom interceptor.
- Specified by:
rollback
in interface ReversibleCommand
Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.