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 Summary
FieldsModifier and TypeFieldDescriptionprivate final DateThe field for theattachTimerecord component.The field for thechainrecord component.private final JournalReceiverThe field for thereceiverrecord component.private final JournalStatusThe field for thestatusrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionJournalReceiverInfo(JournalReceiver receiver, Date attachTime, JournalStatus status, Optional<Integer> chain) Creates an instance of aJournalReceiverInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattachTimerecord component.chain()Returns the value of thechainrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.receiver()Returns the value of thereceiverrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.withStatus(JournalStatus newStatus)
-
Field Details
-
receiver
The field for thereceiverrecord component. -
attachTime
The field for theattachTimerecord component. -
status
The field for thestatusrecord component. -
chain
The field for thechainrecord component.
-
-
Constructor Details
-
JournalReceiverInfo
public JournalReceiverInfo(JournalReceiver receiver, Date attachTime, JournalStatus status, Optional<Integer> chain) Creates an instance of aJournalReceiverInforecord class.- Parameters:
receiver- the value for thereceiverrecord componentattachTime- the value for theattachTimerecord componentstatus- the value for thestatusrecord componentchain- the value for thechainrecord component
-
-
Method Details
-
withStatus
-
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. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
receiver
Returns the value of thereceiverrecord component.- Returns:
- the value of the
receiverrecord component
-
attachTime
Returns the value of theattachTimerecord component.- Returns:
- the value of the
attachTimerecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
chain
Returns the value of thechainrecord component.- Returns:
- the value of the
chainrecord component
-