Package org.apache.activemq.command
Class LocalTransactionId
java.lang.Object
org.apache.activemq.command.TransactionId
org.apache.activemq.command.LocalTransactionId
- All Implemented Interfaces:
Comparable<LocalTransactionId>,DataStructure
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleanbytelonggetValue()inthashCode()booleanbooleanvoidsetConnectionId(ConnectionId connectionId) voidsetValue(long transactionId) toString()Methods inherited from class org.apache.activemq.command.TransactionId
isMarshallAware
-
Field Details
-
DATA_STRUCTURE_TYPE
public static final byte DATA_STRUCTURE_TYPE- See Also:
-
connectionId
-
value
protected long value
-
-
Constructor Details
-
LocalTransactionId
public LocalTransactionId() -
LocalTransactionId
-
-
Method Details
-
getDataStructureType
public byte getDataStructureType()- Specified by:
getDataStructureTypein interfaceDataStructure- Returns:
- The type of the data structure
-
isXATransaction
public boolean isXATransaction()- Specified by:
isXATransactionin classTransactionId
-
isLocalTransaction
public boolean isLocalTransaction()- Specified by:
isLocalTransactionin classTransactionId
-
getTransactionKey
- Specified by:
getTransactionKeyin classTransactionId
-
toString
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<LocalTransactionId>- Parameters:
o-- Returns:
- See Also:
-
getValue
public long getValue() -
setValue
public void setValue(long transactionId) -
getConnectionId
-
setConnectionId
-