@Immutable public class SerializableXid extends Object implements Xid
Xid is not Serializable and
we need to serialize it and send it over the network. As the KTA spec does not enforce in anyway the equals and hashcode methods on Xid
TM providers are expected to be able to cope with this Xid class when returned from XAResource's methods.| Modifier and Type | Class and Description |
|---|---|
static class |
SerializableXid.XidExternalizer |
MAXBQUALSIZE, MAXGTRIDSIZE| Constructor and Description |
|---|
SerializableXid(byte[] branchQualifier,
byte[] globalTransactionId,
int formantId) |
SerializableXid(Xid xid) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
byte[] |
getBranchQualifier()
Get the transaction branch qualifier of this transaction.
|
int |
getFormatId()
Get the format identifier.
|
byte[] |
getGlobalTransactionId()
Get the global transaction id of this transaction.
|
int |
hashCode() |
String |
toString() |
public SerializableXid(byte[] branchQualifier,
byte[] globalTransactionId,
int formantId)
public SerializableXid(Xid xid)
public byte[] getBranchQualifier()
XidgetBranchQualifier in interface Xidpublic byte[] getGlobalTransactionId()
XidgetGlobalTransactionId in interface Xidpublic int getFormatId()
XidgetFormatId in interface XidCopyright © 2012 JBoss by Red Hat. All Rights Reserved.