Record Class PartitionMigrationManager.ActiveOutgoingMigration
java.lang.Object
java.lang.Record
com.loomcache.server.cluster.PartitionMigrationManager.ActiveOutgoingMigration
- Enclosing class:
PartitionMigrationManager
-
Constructor Summary
ConstructorsConstructorDescriptionActiveOutgoingMigration(int slotId, String sourceNodeId, String targetNodeId, int highWaterMark) Creates an instance of aActiveOutgoingMigrationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thehighWaterMarkrecord component.intslotId()Returns the value of theslotIdrecord component.Returns the value of thesourceNodeIdrecord component.Returns the value of thetargetNodeIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ActiveOutgoingMigration
public ActiveOutgoingMigration(int slotId, String sourceNodeId, String targetNodeId, int highWaterMark) Creates an instance of aActiveOutgoingMigrationrecord class.- Parameters:
slotId- the value for theslotIdrecord componentsourceNodeId- the value for thesourceNodeIdrecord 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. -
slotId
public int slotId()Returns the value of theslotIdrecord component.- Returns:
- the value of the
slotIdrecord component
-
sourceNodeId
Returns the value of thesourceNodeIdrecord component.- Returns:
- the value of the
sourceNodeIdrecord 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
-