org.jboss.cache.commands.legacy
Interface ReversibleCommand

All Superinterfaces:
DataCommand, ReplicableCommand, VisitableCommand, WriteCommand
All Known Implementing Classes:
CreateNodeCommand, PessClearDataCommand, PessMoveCommand, PessPutDataMapCommand, PessPutForExternalReadCommand, PessPutKeyValueCommand, PessRemoveKeyCommand, PessRemoveNodeCommand

Deprecated. will be removed along with optimistic and pessimistic locking.

@Deprecated
public interface ReversibleCommand
extends WriteCommand

A write command that can be reversed by calling a rollback.

Since:
3.0
Author:
Manik Surtani (manik AT jboss DOT org)

Method Summary
 void rollback()
          Deprecated. Reverses a command that has already been invoked.
 
Methods inherited from interface org.jboss.cache.commands.WriteCommand
getGlobalTransaction, setGlobalTransaction
 
Methods inherited from interface org.jboss.cache.commands.DataCommand
getFqn
 
Methods inherited from interface org.jboss.cache.commands.VisitableCommand
acceptVisitor
 
Methods inherited from interface org.jboss.cache.commands.ReplicableCommand
getCommandId, getParameters, perform, setParameters
 

Method Detail

rollback

void rollback()
Deprecated. 
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.



Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.