Class SerializableXid
- java.lang.Object
-
- org.infinispan.transaction.xa.recovery.SerializableXid
-
- All Implemented Interfaces:
javax.transaction.xa.Xid
@Immutable @Deprecated public class SerializableXid extends java.lang.Object implements javax.transaction.xa.XidDeprecated.useXidImplinstead.This xid implementation is needed becauseXidis notSerializableand 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 classSerializableXid.XidExternalizerDeprecated.
-
Constructor Summary
Constructors Constructor Description SerializableXid(byte[] branchQualifier, byte[] globalTransactionId, int formantId)Deprecated.SerializableXid(javax.transaction.xa.Xid xid)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Deprecated.byte[]getBranchQualifier()Deprecated.intgetFormatId()Deprecated.byte[]getGlobalTransactionId()Deprecated.inthashCode()Deprecated.java.lang.StringtoString()Deprecated.
-
-
-
Method Detail
-
getBranchQualifier
public byte[] getBranchQualifier()
Deprecated.- Specified by:
getBranchQualifierin interfacejavax.transaction.xa.Xid
-
getGlobalTransactionId
public byte[] getGlobalTransactionId()
Deprecated.- Specified by:
getGlobalTransactionIdin interfacejavax.transaction.xa.Xid
-
getFormatId
public int getFormatId()
Deprecated.- Specified by:
getFormatIdin interfacejavax.transaction.xa.Xid
-
equals
public boolean equals(java.lang.Object o)
Deprecated.- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toStringin classjava.lang.Object
-
-