Class SerializableXid
- java.lang.Object
-
- org.infinispan.transaction.xa.recovery.SerializableXid
-
- All Implemented Interfaces:
Xid
@Immutable @Deprecated public class SerializableXid extends Object implements Xid
Deprecated.useXidImpl
instead.This xid implementation is needed becauseXid
is notSerializable
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.- Since:
- 5.0
- Author:
- Mircea.Markus@jboss.com
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SerializableXid.XidExternalizer
Deprecated.
-
Field Summary
-
Fields inherited from interface javax.transaction.xa.Xid
MAXBQUALSIZE, MAXGTRIDSIZE
-
-
Constructor Summary
Constructors Constructor Description SerializableXid(byte[] branchQualifier, byte[] globalTransactionId, int formantId)
Deprecated.SerializableXid(Xid xid)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(Object o)
Deprecated.byte[]
getBranchQualifier()
Deprecated.int
getFormatId()
Deprecated.byte[]
getGlobalTransactionId()
Deprecated.int
hashCode()
Deprecated.String
toString()
Deprecated.
-
-
-
Constructor Detail
-
SerializableXid
public SerializableXid(byte[] branchQualifier, byte[] globalTransactionId, int formantId)
Deprecated.
-
SerializableXid
public SerializableXid(Xid xid)
Deprecated.
-
-
Method Detail
-
getBranchQualifier
public byte[] getBranchQualifier()
Deprecated.- Specified by:
getBranchQualifier
in interfaceXid
-
getGlobalTransactionId
public byte[] getGlobalTransactionId()
Deprecated.- Specified by:
getGlobalTransactionId
in interfaceXid
-
getFormatId
public int getFormatId()
Deprecated.- Specified by:
getFormatId
in interfaceXid
-
-