Class CacheXid
- java.lang.Object
-
- org.infinispan.server.hotrod.tx.table.CacheXid
-
public class CacheXid extends 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 org.infinispan.commons.marshall.AdvancedExternalizer<CacheXid>
EXTERNALIZER
-
Constructor Summary
Constructors Constructor Description CacheXid(ByteString cacheName, org.infinispan.commons.tx.XidImpl xid)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
ByteString
getCacheName()
org.infinispan.commons.tx.XidImpl
getXid()
int
hashCode()
static CacheXid
readFrom(ObjectInput input)
boolean
sameXid(Xid other)
String
toString()
static void
writeTo(ObjectOutput output, CacheXid object)
-
-
-
Field Detail
-
EXTERNALIZER
public static final org.infinispan.commons.marshall.AdvancedExternalizer<CacheXid> EXTERNALIZER
-
-
Constructor Detail
-
CacheXid
public CacheXid(ByteString cacheName, org.infinispan.commons.tx.XidImpl xid)
-
-
Method Detail
-
sameXid
public boolean sameXid(Xid other)
-
writeTo
public static void writeTo(ObjectOutput output, CacheXid object) throws IOException
- Throws:
IOException
-
readFrom
public static CacheXid readFrom(ObjectInput input) throws IOException
- Throws:
IOException
-
getCacheName
public ByteString getCacheName()
-
getXid
public org.infinispan.commons.tx.XidImpl getXid()
-
-