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 Summary
FieldsModifier and TypeFieldDescriptionprivate final BigIntegerThe field for theendrecord component.private final JournalReceiverInfoThe field for theinforecord component.private static final org.slf4j.Loggerprivate final longThe field for themaxEntryLengthrecord component.private final Optional<JournalReceiver>The field for thenextReceiverrecord component.private final longThe field for thenumberOfEntriesrecord component.private final BigIntegerThe field for thestartrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionDetailedJournalReceiver(JournalReceiverInfo info, BigInteger start, BigInteger end, Optional<JournalReceiver> nextReceiver, long maxEntryLength, long numberOfEntries) Creates an instance of aDetailedJournalReceiverrecord class. -
Method Summary
Modifier and TypeMethodDescriptionend()Returns the value of theendrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static intinfo()Returns the value of theinforecord component.booleanbooleanisJoined()static booleanisJoined(JournalStatus status) booleanisSameReceiver(JournalProcessedPosition position) booleanisSameReceiver(DetailedJournalReceiver otherReceiver) static List<DetailedJournalReceiver>longReturns the value of themaxEntryLengthrecord component.Returns the value of thenextReceiverrecord component.longReturns the value of thenumberOfEntriesrecord component.start()Returns the value of thestartrecord component.final StringtoString()Returns a string representation of this record class.withStatus(JournalStatus status)
-
Field Details
-
info
The field for theinforecord component. -
start
The field for thestartrecord component. -
end
The field for theendrecord component. -
nextReceiver
The field for thenextReceiverrecord component. -
maxEntryLength
private final long maxEntryLengthThe field for themaxEntryLengthrecord component. -
numberOfEntries
private final long numberOfEntriesThe field for thenumberOfEntriesrecord 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 aDetailedJournalReceiverrecord class.- Parameters:
info- the value for theinforecord componentstart- the value for thestartrecord componentend- the value for theendrecord componentnextReceiver- the value for thenextReceiverrecord componentmaxEntryLength- the value for themaxEntryLengthrecord componentnumberOfEntries- the value for thenumberOfEntriesrecord component
-
-
Method Details
-
withStatus
-
isSameReceiver
-
isSameReceiver
-
isAttached
public boolean isAttached() -
lastJoined
-
indexOfLastJoined
-
isJoined
public boolean isJoined() -
isJoined
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
info
Returns the value of theinforecord component.- Returns:
- the value of the
inforecord component
-
start
Returns the value of thestartrecord component.- Returns:
- the value of the
startrecord component
-
end
Returns the value of theendrecord component.- Returns:
- the value of the
endrecord component
-
nextReceiver
Returns the value of thenextReceiverrecord component.- Returns:
- the value of the
nextReceiverrecord component
-
maxEntryLength
public long maxEntryLength()Returns the value of themaxEntryLengthrecord component.- Returns:
- the value of the
maxEntryLengthrecord component
-
numberOfEntries
public long numberOfEntries()Returns the value of thenumberOfEntriesrecord component.- Returns:
- the value of the
numberOfEntriesrecord component
-