Record Class RecoveryInfoKey
java.lang.Object
java.lang.Record
org.infinispan.transaction.xa.recovery.RecoveryInfoKey
This makes sure that only xids pertaining to a certain cache are being returned when needed. This is required as the
RecoveryManagerImpl.registerInDoubtTransaction(RecoveryAwareRemoteTransaction) is shared between different
RecoveryManagers/caches.- Since:
- 5.0
- Author:
- Mircea.Markus@jboss.com
-
Constructor Summary
ConstructorsConstructorDescriptionRecoveryInfoKey(XidImpl xid, String cacheName) Creates an instance of aRecoveryInfoKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecacheNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.xid()Returns the value of thexidrecord component.
-
Constructor Details
-
RecoveryInfoKey
-
-
Method Details
-
toString
-
hashCode
-
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). -
xid
Returns the value of thexidrecord component.- Returns:
- the value of the
xidrecord component
-
cacheName
Returns the value of thecacheNamerecord component.- Returns:
- the value of the
cacheNamerecord component
-