public abstract class AbstractTransactionCommand extends Object implements VisitableCommand
Modifier and Type | Field and Description |
---|---|
protected GlobalTransaction |
globalTransaction |
Constructor and Description |
---|
AbstractTransactionCommand() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
GlobalTransaction |
getGlobalTransaction() |
Object[] |
getParameters()
Used by marshallers to stream this command across a network
|
int |
hashCode() |
Object |
perform(InvocationContext ctx)
Default implementation which is a no-op.
|
void |
setGlobalTransaction(GlobalTransaction gtx) |
void |
setParameters(int commandId,
Object[] args)
Used by the
CommandsFactory to create a command from raw data read off a stream. |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
acceptVisitor
getCommandId
protected GlobalTransaction globalTransaction
public Object perform(InvocationContext ctx)
perform
in interface ReplicableCommand
ctx
- invocation contextpublic GlobalTransaction getGlobalTransaction()
public void setGlobalTransaction(GlobalTransaction gtx)
public Object[] getParameters()
ReplicableCommand
getParameters
in interface ReplicableCommand
public void setParameters(int commandId, Object[] args)
ReplicableCommand
CommandsFactory
to create a command from raw data read off a stream.setParameters
in interface ReplicableCommand
commandId
- command id to set. This is usually unused but *could* be used in the event of a command having multiple IDs, such as PutKeyValueCommand
.args
- object array of argsCopyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.