public class LocalTransactionId extends TransactionId implements Comparable<LocalTransactionId>
Modifier and Type | Field and Description |
---|---|
protected ConnectionId |
connectionId |
static byte |
DATA_STRUCTURE_TYPE |
protected long |
value |
Constructor and Description |
---|
LocalTransactionId() |
LocalTransactionId(ConnectionId connectionId,
long transactionId) |
Modifier and Type | Method and 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() |
isMarshallAware
public static final byte DATA_STRUCTURE_TYPE
protected ConnectionId connectionId
protected long value
public LocalTransactionId()
public LocalTransactionId(ConnectionId connectionId, long transactionId)
public byte getDataStructureType()
getDataStructureType
in interface DataStructure
public boolean isXATransaction()
isXATransaction
in class TransactionId
public boolean isLocalTransaction()
isLocalTransaction
in class TransactionId
public String getTransactionKey()
getTransactionKey
in class TransactionId
public int compareTo(LocalTransactionId o)
compareTo
in interface Comparable<LocalTransactionId>
o
- Comparable.compareTo(java.lang.Object)
public long getValue()
public void setValue(long transactionId)
public ConnectionId getConnectionId()
public void setConnectionId(ConnectionId connectionId)
Copyright © 2005–2016 The Apache Software Foundation. All rights reserved.