org.codehaus.activemq.message
Class TransactionInfo

java.lang.Object
  extended byorg.codehaus.activemq.message.AbstractPacket
      extended byorg.codehaus.activemq.message.TransactionInfo
All Implemented Interfaces:
Packet, TransactionType

public class TransactionInfo
extends AbstractPacket
implements TransactionType

Provides a infomation about a Transaction

Version:
$Revision: 1.2 $

Field Summary
 
Fields inherited from class org.codehaus.activemq.message.AbstractPacket
bitArray, BROKERS_VISITED_INDEX, RECEIPT_REQUIRED_INDEX
 
Fields inherited from interface org.codehaus.activemq.message.TransactionType
COMMIT, COMMIT_ONE_PHASE, END, FORGET, GET_RM_ID, GET_TX_TIMEOUT, JOIN, NOT_SET, PRE_COMMIT, RECOVER, ROLLBACK, SET_TX_TIMEOUT, START, XA_RECOVER
 
Fields inherited from interface org.codehaus.activemq.message.Packet
ACTIVEMQ_BROKER_INFO, ACTIVEMQ_BYTES_MESSAGE, ACTIVEMQ_CONNECTION_INFO, ACTIVEMQ_MAP_MESSAGE, ACTIVEMQ_MESSAGE, ACTIVEMQ_MSG_ACK, ACTIVEMQ_OBJECT_MESSAGE, ACTIVEMQ_STREAM_MESSAGE, ACTIVEMQ_TEXT_MESSAGE, BROKER_ADMIN_COMMAND, CAPACITY_INFO, CAPACITY_INFO_REQUEST, CONSUMER_INFO, DURABLE_UNSUBSCRIBE, INT_RESPONSE_RECEIPT_INFO, KEEP_ALIVE, PRODUCER_INFO, RECEIPT_INFO, RESPONSE_RECEIPT_INFO, SESSION_INFO, TRANSACTION_INFO, WIRE_FORMAT_INFO, XA_TRANSACTION_INFO
 
Constructor Summary
TransactionInfo()
           
 
Method Summary
 boolean equals(Object obj)
          Test for equality
 int getPacketType()
          Return the type of Packet
 String getTransactionId()
           
 int getType()
           
 int hashCode()
           
 void setTransactionId(String transactionId)
           
 void setType(int newType)
           
 String toString()
           
 
Methods inherited from class org.codehaus.activemq.message.AbstractPacket
addBrokerVisited, decrementMemoryReferenceCount, equals, getBitArray, getBrokersVisited, getBrokersVisitedAsString, getId, getMemoryUsage, getMemoryUsageReferenceCount, getPacketTypeAsString, hasVisited, incrementMemoryReferenceCount, initializeOther, isJMSMessage, isReceipt, isReceiptRequired, setBitArray, setId, setMemoryUsage, setReceiptRequired
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransactionInfo

public TransactionInfo()
Method Detail

getTransactionId

public String getTransactionId()
Returns:
Returns the transactionId.

setTransactionId

public void setTransactionId(String transactionId)
Parameters:
transactionId - The transactionId to set.

getPacketType

public int getPacketType()
Return the type of Packet

Specified by:
getPacketType in interface Packet
Returns:
integer representation of the type of Packet

equals

public boolean equals(Object obj)
Test for equality

Overrides:
equals in class AbstractPacket
Parameters:
obj - object to test
Returns:
true if equivalent

hashCode

public int hashCode()
Overrides:
hashCode in class AbstractPacket
Returns:
hash code for instance

getType

public int getType()
Returns:
Returns the type of transacton command.

setType

public void setType(int newType)
Parameters:
newType - the type of transaction command The type to set.

toString

public String toString()
Overrides:
toString in class AbstractPacket
Returns:
pretty print of this Packet


Copyright © 2004-2005 Protique, Ltd.. All Rights Reserved.