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