Record Class FirstHeader
java.lang.Object
java.lang.Record
io.debezium.ibmi.db2.journal.retrieve.rjne0200.FirstHeader
public record FirstHeader(int totalBytes, int offset, int size, OffsetStatus status, JournalProcessedPosition nextPosition)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final JournalProcessedPositionThe field for thenextPositionrecord component.private final intThe field for theoffsetrecord component.private final intThe field for thesizerecord component.private final OffsetStatusThe field for thestatusrecord component.private final intThe field for thetotalBytesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionFirstHeader(int totalBytes, int offset, int size, OffsetStatus status, JournalProcessedPosition nextPosition) Creates an instance of aFirstHeaderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanhasData()booleanfinal inthashCode()Returns a hash code value for this object.Returns the value of thenextPositionrecord component.intoffset()Returns the value of theoffsetrecord component.intsize()Returns the value of thesizerecord component.status()Returns the value of thestatusrecord component.toString()Returns a string representation of this record class.intReturns the value of thetotalBytesrecord component.
-
Field Details
-
totalBytes
private final int totalBytesThe field for thetotalBytesrecord component. -
offset
private final int offsetThe field for theoffsetrecord component. -
size
private final int sizeThe field for thesizerecord component. -
status
The field for thestatusrecord component. -
nextPosition
The field for thenextPositionrecord component.
-
-
Constructor Details
-
FirstHeader
public FirstHeader(int totalBytes, int offset, int size, OffsetStatus status, JournalProcessedPosition nextPosition) Creates an instance of aFirstHeaderrecord class.- Parameters:
totalBytes- the value for thetotalBytesrecord componentoffset- the value for theoffsetrecord componentsize- the value for thesizerecord componentstatus- the value for thestatusrecord componentnextPosition- the value for thenextPositionrecord component
-
-
Method Details
-
hasData
public boolean hasData() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hasFutureDataAvailable
public boolean hasFutureDataAvailable() -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
totalBytes
public int totalBytes()Returns the value of thetotalBytesrecord component.- Returns:
- the value of the
totalBytesrecord component
-
offset
public int offset()Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
size
public int size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
nextPosition
Returns the value of thenextPositionrecord component.- Returns:
- the value of the
nextPositionrecord component
-