Record Class CacheXid
java.lang.Object
java.lang.Record
org.infinispan.server.hotrod.tx.table.CacheXid
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
-
Constructor Summary
ConstructorsConstructorDescriptionCacheXid(ByteString cacheName, XidImpl xid) Creates an instance of aCacheXidrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecacheNamerecord component.booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleantoString()Returns a string representation of this record class.xid()Returns the value of thexidrecord component.
-
Constructor Details
-
CacheXid
Creates an instance of aCacheXidrecord class.- Parameters:
cacheName- the value for thecacheNamerecord componentxid- the value for thexidrecord component
-
-
Method Details
-
sameXid
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
toString
-
hashCode
-
cacheName
Returns the value of thecacheNamerecord component.- Returns:
- the value of the
cacheNamerecord component
-
xid
Returns the value of thexidrecord component.- Returns:
- the value of the
xidrecord component
-