Class CacheXid
- java.lang.Object
-
- org.infinispan.server.hotrod.tx.table.CacheXid
-
public class CacheXid extends java.lang.Object
A key used in the global transaction table.The global transaction table is a replicated cache. This key contains the cache name and the transactions'
XidImpl
.- Since:
- 9.1
- Author:
- Pedro Ruivo
-
-
Field Summary
Fields Modifier and Type Field Description static AdvancedExternalizer<CacheXid>
EXTERNALIZER
-
Constructor Summary
Constructors Constructor Description CacheXid(ByteString cacheName, XidImpl xid)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
ByteString
getCacheName()
XidImpl
getXid()
int
hashCode()
static CacheXid
readFrom(java.io.ObjectInput input)
boolean
sameXid(javax.transaction.xa.Xid other)
java.lang.String
toString()
static void
writeTo(java.io.ObjectOutput output, CacheXid object)
-
-
-
Field Detail
-
EXTERNALIZER
public static final AdvancedExternalizer<CacheXid> EXTERNALIZER
-
-
Constructor Detail
-
CacheXid
public CacheXid(ByteString cacheName, XidImpl xid)
-
-
Method Detail
-
sameXid
public boolean sameXid(javax.transaction.xa.Xid other)
-
writeTo
public static void writeTo(java.io.ObjectOutput output, CacheXid object) throws java.io.IOException
- Throws:
java.io.IOException
-
readFrom
public static CacheXid readFrom(java.io.ObjectInput input) throws java.io.IOException
- Throws:
java.io.IOException
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getCacheName
public ByteString getCacheName()
-
getXid
public XidImpl getXid()
-
-