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 aCacheXid
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecacheName
record component.boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
toString()
Returns a string representation of this record class.xid()
Returns the value of thexid
record component.
-
Constructor Details
-
CacheXid
Creates an instance of aCacheXid
record class.- Parameters:
cacheName
- the value for thecacheName
record componentxid
- the value for thexid
record 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 thecacheName
record component.- Returns:
- the value of the
cacheName
record component
-
xid
Returns the value of thexid
record component.- Returns:
- the value of the
xid
record component
-