org.apache.activemq.command
Class LocalTransactionId

java.lang.Object
  extended by org.apache.activemq.command.TransactionId
      extended by org.apache.activemq.command.LocalTransactionId
All Implemented Interfaces:
java.lang.Comparable<LocalTransactionId>, DataStructure

public class LocalTransactionId
extends TransactionId
implements java.lang.Comparable<LocalTransactionId>


Field Summary
protected  ConnectionId connectionId
           
static byte DATA_STRUCTURE_TYPE
           
protected  long value
           
 
Constructor Summary
LocalTransactionId()
           
LocalTransactionId(ConnectionId connectionId, long transactionId)
           
 
Method Summary
 int compareTo(LocalTransactionId o)
           
 boolean equals(java.lang.Object o)
           
 ConnectionId getConnectionId()
           
 byte getDataStructureType()
           
 java.lang.String getTransactionKey()
           
 long getValue()
           
 int hashCode()
           
 boolean isLocalTransaction()
           
 boolean isXATransaction()
           
 void setConnectionId(ConnectionId connectionId)
           
 void setValue(long transactionId)
           
 java.lang.String toString()
           
 
Methods inherited from class org.apache.activemq.command.TransactionId
isMarshallAware
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DATA_STRUCTURE_TYPE

public static final byte DATA_STRUCTURE_TYPE
See Also:
Constant Field Values

connectionId

protected ConnectionId connectionId

value

protected long value
Constructor Detail

LocalTransactionId

public LocalTransactionId()

LocalTransactionId

public LocalTransactionId(ConnectionId connectionId,
                          long transactionId)
Method Detail

getDataStructureType

public byte getDataStructureType()
Specified by:
getDataStructureType in interface DataStructure
Returns:
The type of the data structure

isXATransaction

public boolean isXATransaction()
Specified by:
isXATransaction in class TransactionId

isLocalTransaction

public boolean isLocalTransaction()
Specified by:
isLocalTransaction in class TransactionId

getTransactionKey

public java.lang.String getTransactionKey()
Specified by:
getTransactionKey in class TransactionId

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(LocalTransactionId o)
Specified by:
compareTo in interface java.lang.Comparable<LocalTransactionId>
Parameters:
o -
Returns:
See Also:
Comparable.compareTo(java.lang.Object)

getValue

public long getValue()

setValue

public void setValue(long transactionId)

getConnectionId

public ConnectionId getConnectionId()

setConnectionId

public void setConnectionId(ConnectionId connectionId)


Copyright © 2005-2011 FuseSource, Corp.. All Rights Reserved.