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(org.infinispan.util.ByteString cacheName, org.infinispan.commons.tx.XidImpl xid)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)org.infinispan.util.ByteStringgetCacheName()org.infinispan.commons.tx.XidImplgetXid()inthashCode()static CacheXidreadFrom(ObjectInput input)booleansameXid(org.infinispan.commons.tx.XidImpl other)StringtoString()static voidwriteTo(ObjectOutput output, CacheXid object)
-
-
-
Field Detail
-
EXTERNALIZER
public static final org.infinispan.commons.marshall.AdvancedExternalizer<CacheXid> EXTERNALIZER
-
-
Method Detail
-
sameXid
public boolean sameXid(org.infinispan.commons.tx.XidImpl 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 org.infinispan.util.ByteString getCacheName()
-
getXid
public org.infinispan.commons.tx.XidImpl getXid()
-
-