Record Class DetailedJournalReceiver

java.lang.Object
java.lang.Record
io.debezium.ibmi.db2.journal.retrieve.rnrn0200.DetailedJournalReceiver

public record DetailedJournalReceiver(JournalReceiverInfo info, BigInteger start, BigInteger end, Optional<JournalReceiver> nextReceiver, long maxEntryLength, long numberOfEntries) extends Record
  • Field Details

    • info

      private final JournalReceiverInfo info
      The field for the info record component.
    • start

      private final BigInteger start
      The field for the start record component.
    • end

      private final BigInteger end
      The field for the end record component.
    • nextReceiver

      private final Optional<JournalReceiver> nextReceiver
      The field for the nextReceiver record component.
    • maxEntryLength

      private final long maxEntryLength
      The field for the maxEntryLength record component.
    • numberOfEntries

      private final long numberOfEntries
      The field for the numberOfEntries record component.
    • log

      private static final org.slf4j.Logger log
  • Constructor Details

    • DetailedJournalReceiver

      public DetailedJournalReceiver(JournalReceiverInfo info, BigInteger start, BigInteger end, Optional<JournalReceiver> nextReceiver, long maxEntryLength, long numberOfEntries)
      Creates an instance of a DetailedJournalReceiver record class.
      Parameters:
      info - the value for the info record component
      start - the value for the start record component
      end - the value for the end record component
      nextReceiver - the value for the nextReceiver record component
      maxEntryLength - the value for the maxEntryLength record component
      numberOfEntries - the value for the numberOfEntries record component
  • Method Details

    • withStatus

      public DetailedJournalReceiver withStatus(JournalStatus status)
    • isSameReceiver

      public boolean isSameReceiver(JournalProcessedPosition position)
    • isSameReceiver

      public boolean isSameReceiver(DetailedJournalReceiver otherReceiver)
    • isAttached

      public boolean isAttached()
    • lastJoined

      public static List<DetailedJournalReceiver> lastJoined(List<DetailedJournalReceiver> list)
    • indexOfLastJoined

      public static int indexOfLastJoined(List<DetailedJournalReceiver> list)
    • isJoined

      public boolean isJoined()
    • isJoined

      public static boolean isJoined(JournalStatus status)
    • toString

      public final 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
    • 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.
    • info

      public JournalReceiverInfo info()
      Returns the value of the info record component.
      Returns:
      the value of the info record component
    • start

      public BigInteger start()
      Returns the value of the start record component.
      Returns:
      the value of the start record component
    • end

      public BigInteger end()
      Returns the value of the end record component.
      Returns:
      the value of the end record component
    • nextReceiver

      public Optional<JournalReceiver> nextReceiver()
      Returns the value of the nextReceiver record component.
      Returns:
      the value of the nextReceiver record component
    • maxEntryLength

      public long maxEntryLength()
      Returns the value of the maxEntryLength record component.
      Returns:
      the value of the maxEntryLength record component
    • numberOfEntries

      public long numberOfEntries()
      Returns the value of the numberOfEntries record component.
      Returns:
      the value of the numberOfEntries record component