@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() |
int |
getFormatId() |
byte[] |
getGlobalTransactionId() |
int |
hashCode() |
String |
toString() |
public SerializableXid(byte[] branchQualifier, byte[] globalTransactionId, int formantId)
public SerializableXid(Xid xid)
public byte[] getBranchQualifier()
getBranchQualifier
in interface Xid
public byte[] getGlobalTransactionId()
getGlobalTransactionId
in interface Xid
public int getFormatId()
getFormatId
in interface Xid
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.