org.apache.activemq.command
Class TransactionInfo

java.lang.Object
  extended by org.apache.activemq.command.BaseCommand
      extended by org.apache.activemq.command.TransactionInfo
All Implemented Interfaces:
Command, DataStructure

public class TransactionInfo
extends BaseCommand


Field Summary
static byte BEGIN
           
static byte COMMIT_ONE_PHASE
           
static byte COMMIT_TWO_PHASE
           
protected  ConnectionId connectionId
           
static byte DATA_STRUCTURE_TYPE
           
static byte END
           
static byte FORGET
           
static byte PREPARE
           
static byte RECOVER
           
static byte ROLLBACK
           
protected  TransactionId transactionId
           
protected  byte type
           
 
Fields inherited from class org.apache.activemq.command.BaseCommand
commandId, responseRequired
 
Constructor Summary
TransactionInfo()
           
TransactionInfo(ConnectionId connectionId, TransactionId transactionId, byte type)
           
 
Method Summary
 ConnectionId getConnectionId()
           
 byte getDataStructureType()
           
 TransactionId getTransactionId()
           
 byte getType()
           
 void setConnectionId(ConnectionId connectionId)
           
 void setTransactionId(TransactionId transactionId)
           
 void setType(byte type)
           
 Response visit(CommandVisitor visitor)
           
 
Methods inherited from class org.apache.activemq.command.BaseCommand
copy, getCommandId, getFrom, getTo, isBrokerInfo, isConnectionControl, isMarshallAware, isMessage, isMessageAck, isMessageDispatch, isMessageDispatchNotification, isResponse, isResponseRequired, isShutdownInfo, isWireFormatInfo, setCommandId, setFrom, setResponseRequired, setTo, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DATA_STRUCTURE_TYPE

public static final byte DATA_STRUCTURE_TYPE
See Also:
Constant Field Values

BEGIN

public static final byte BEGIN
See Also:
Constant Field Values

PREPARE

public static final byte PREPARE
See Also:
Constant Field Values

COMMIT_ONE_PHASE

public static final byte COMMIT_ONE_PHASE
See Also:
Constant Field Values

COMMIT_TWO_PHASE

public static final byte COMMIT_TWO_PHASE
See Also:
Constant Field Values

ROLLBACK

public static final byte ROLLBACK
See Also:
Constant Field Values

RECOVER

public static final byte RECOVER
See Also:
Constant Field Values

FORGET

public static final byte FORGET
See Also:
Constant Field Values

END

public static final byte END
See Also:
Constant Field Values

type

protected byte type

connectionId

protected ConnectionId connectionId

transactionId

protected TransactionId transactionId
Constructor Detail

TransactionInfo

public TransactionInfo()

TransactionInfo

public TransactionInfo(ConnectionId connectionId,
                       TransactionId transactionId,
                       byte type)
Method Detail

getDataStructureType

public byte getDataStructureType()
Returns:
The type of the data structure

getConnectionId

public ConnectionId getConnectionId()

setConnectionId

public void setConnectionId(ConnectionId connectionId)

getTransactionId

public TransactionId getTransactionId()

setTransactionId

public void setTransactionId(TransactionId transactionId)

getType

public byte getType()

setType

public void setType(byte type)

visit

public Response visit(CommandVisitor visitor)
               throws Exception
Throws:
Exception


Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.