Record Class PartitionMigrationManager.ChunkedDataFrame
java.lang.Object
java.lang.Record
com.loomcache.server.cluster.PartitionMigrationManager.ChunkedDataFrame
- Enclosing class:
PartitionMigrationManager
public static record PartitionMigrationManager.ChunkedDataFrame(int chunkSeq, int totalChunks, byte[] batchBytes)
extends Record
Parsed chunk-level DATA metadata + payload.
- Since:
- 1.0
-
Constructor Summary
ConstructorsConstructorDescriptionChunkedDataFrame(int chunkSeq, int totalChunks, byte[] batchBytes) Creates an instance of aChunkedDataFramerecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Returns the value of thebatchBytesrecord component.intchunkSeq()Returns the value of thechunkSeqrecord 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.intReturns the value of thetotalChunksrecord component.
-
Constructor Details
-
ChunkedDataFrame
public ChunkedDataFrame(int chunkSeq, int totalChunks, byte[] batchBytes) Creates an instance of aChunkedDataFramerecord class.- Parameters:
chunkSeq- the value for thechunkSeqrecord componenttotalChunks- the value for thetotalChunksrecord componentbatchBytes- the value for thebatchBytesrecord 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. -
chunkSeq
public int chunkSeq()Returns the value of thechunkSeqrecord component.- Returns:
- the value of the
chunkSeqrecord component
-
totalChunks
public int totalChunks()Returns the value of thetotalChunksrecord component.- Returns:
- the value of the
totalChunksrecord component
-
batchBytes
public byte[] batchBytes()Returns the value of thebatchBytesrecord component.- Returns:
- the value of the
batchBytesrecord component
-