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 Details

    • totalBytes

      private final int totalBytes
      The field for the totalBytes record component.
    • offset

      private final int offset
      The field for the offset record component.
    • size

      private final int size
      The field for the size record component.
    • status

      private final OffsetStatus status
      The field for the status record component.
    • nextPosition

      private final JournalProcessedPosition nextPosition
      The field for the nextPosition record component.
  • Constructor Details

    • FirstHeader

      public FirstHeader(int totalBytes, int offset, int size, OffsetStatus status, JournalProcessedPosition nextPosition)
      Creates an instance of a FirstHeader record class.
      Parameters:
      totalBytes - the value for the totalBytes record component
      offset - the value for the offset record component
      size - the value for the size record component
      status - the value for the status record component
      nextPosition - the value for the nextPosition record component
  • Method Details

    • hasData

      public boolean hasData()
    • toString

      public String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • totalBytes

      public int totalBytes()
      Returns the value of the totalBytes record component.
      Returns:
      the value of the totalBytes record component
    • offset

      public int offset()
      Returns the value of the offset record component.
      Returns:
      the value of the offset record component
    • size

      public int size()
      Returns the value of the size record component.
      Returns:
      the value of the size record component
    • status

      public OffsetStatus status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • nextPosition

      public JournalProcessedPosition nextPosition()
      Returns the value of the nextPosition record component.
      Returns:
      the value of the nextPosition record component