Record Class JournalReceiverInfo

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

public record JournalReceiverInfo(JournalReceiver receiver, Date attachTime, JournalStatus status, Optional<Integer> chain) extends Record
  • Field Details

    • receiver

      private final JournalReceiver receiver
      The field for the receiver record component.
    • attachTime

      private final Date attachTime
      The field for the attachTime record component.
    • status

      private final JournalStatus status
      The field for the status record component.
    • chain

      private final Optional<Integer> chain
      The field for the chain record component.
  • Constructor Details

    • JournalReceiverInfo

      public JournalReceiverInfo(JournalReceiver receiver, Date attachTime, JournalStatus status, Optional<Integer> chain)
      Creates an instance of a JournalReceiverInfo record class.
      Parameters:
      receiver - the value for the receiver record component
      attachTime - the value for the attachTime record component
      status - the value for the status record component
      chain - the value for the chain record component
  • Method Details

    • withStatus

      public JournalReceiverInfo withStatus(JournalStatus newStatus)
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • receiver

      public JournalReceiver receiver()
      Returns the value of the receiver record component.
      Returns:
      the value of the receiver record component
    • attachTime

      public Date attachTime()
      Returns the value of the attachTime record component.
      Returns:
      the value of the attachTime record component
    • status

      public JournalStatus status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • chain

      public Optional<Integer> chain()
      Returns the value of the chain record component.
      Returns:
      the value of the chain record component