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
public class LocalTransactionId extends TransactionId implements Comparable<LocalTransactionId>
-
-
Field Summary
Fields Modifier and Type Field Description protected ConnectionId
connectionId
static byte
DATA_STRUCTURE_TYPE
protected long
value
-
Constructor Summary
Constructors Constructor Description LocalTransactionId()
LocalTransactionId(ConnectionId connectionId, long transactionId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(LocalTransactionId o)
boolean
equals(Object o)
ConnectionId
getConnectionId()
byte
getDataStructureType()
String
getTransactionKey()
long
getValue()
int
hashCode()
boolean
isLocalTransaction()
boolean
isXATransaction()
void
setConnectionId(ConnectionId connectionId)
void
setValue(long transactionId)
String
toString()
-
Methods inherited from class org.apache.activemq.command.TransactionId
isMarshallAware
-
-
-
-
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 interfaceDataStructure
- Returns:
- The type of the data structure
-
isXATransaction
public boolean isXATransaction()
- Specified by:
isXATransaction
in classTransactionId
-
isLocalTransaction
public boolean isLocalTransaction()
- Specified by:
isLocalTransaction
in classTransactionId
-
getTransactionKey
public String getTransactionKey()
- Specified by:
getTransactionKey
in classTransactionId
-
compareTo
public int compareTo(LocalTransactionId o)
- Specified by:
compareTo
in interfaceComparable<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)
-
-