Record Class PartitionMigrationManager.MigrationRecoveryRequest
java.lang.Object
java.lang.Record
com.loomcache.server.cluster.PartitionMigrationManager.MigrationRecoveryRequest
- Enclosing class:
PartitionMigrationManager
-
Constructor Summary
ConstructorsConstructorDescriptionMigrationRecoveryRequest(String failedSourceNodeId, String targetNodeId, int highWaterMark) Creates an instance of aMigrationRecoveryRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefailedSourceNodeIdrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of thehighWaterMarkrecord component.Returns the value of thetargetNodeIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MigrationRecoveryRequest
Creates an instance of aMigrationRecoveryRequestrecord class.- Parameters:
failedSourceNodeId- the value for thefailedSourceNodeIdrecord componenttargetNodeId- the value for thetargetNodeIdrecord componenthighWaterMark- the value for thehighWaterMarkrecord component
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
failedSourceNodeId
Returns the value of thefailedSourceNodeIdrecord component.- Returns:
- the value of the
failedSourceNodeIdrecord component
-
targetNodeId
Returns the value of thetargetNodeIdrecord component.- Returns:
- the value of the
targetNodeIdrecord component
-
highWaterMark
public int highWaterMark()Returns the value of thehighWaterMarkrecord component.- Returns:
- the value of the
highWaterMarkrecord component
-