Record Class RejectedLogEventsInfo
java.lang.Object
java.lang.Record
codes.grow.packages.cloudwatchlogs.RejectedLogEventsInfo
- Record Components:
batch- index of the batch within the call (0-based)tooOldLogEventEndIndex- events before this index (exclusive end) were older than 14 days or the retentiontooNewLogEventStartIndex- events from this index on were more than 2 hours in the futureexpiredLogEventEndIndex- events before this index (exclusive end) were older than the retention period
public record RejectedLogEventsInfo(int batch, OptionalInt tooOldLogEventEndIndex, OptionalInt tooNewLogEventStartIndex, OptionalInt expiredLogEventEndIndex)
extends Record
Events of one batch that the service did not store (indexes into the sorted batch). As returned
by AWS the end indexes are exclusive and the start index is inclusive; Moto 5.2.4 returns end
indexes one lower.
-
Constructor Summary
ConstructorsConstructorDescriptionRejectedLogEventsInfo(int batch, OptionalInt tooOldLogEventEndIndex, OptionalInt tooNewLogEventStartIndex, OptionalInt expiredLogEventEndIndex) Normalises absent values (null lists become empty, null optionals empty). -
Method Summary
Modifier and TypeMethodDescriptionintbatch()Returns the value of thebatchrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpiredLogEventEndIndexrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thetooNewLogEventStartIndexrecord component.Returns the value of thetooOldLogEventEndIndexrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RejectedLogEventsInfo
public RejectedLogEventsInfo(int batch, OptionalInt tooOldLogEventEndIndex, OptionalInt tooNewLogEventStartIndex, OptionalInt expiredLogEventEndIndex) Normalises absent values (null lists become empty, null optionals empty).- Parameters:
batch- index of the batch within the call (0-based)tooOldLogEventEndIndex- events before this index (exclusive end) were older than 14 days or the retentiontooNewLogEventStartIndex- events from this index on were more than 2 hours in the futureexpiredLogEventEndIndex- events before this index (exclusive end) were older than the retention period
-
-
Method Details
-
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 '=='. -
batch
public int batch()Returns the value of thebatchrecord component.- Returns:
- the value of the
batchrecord component
-
tooOldLogEventEndIndex
Returns the value of thetooOldLogEventEndIndexrecord component.- Returns:
- the value of the
tooOldLogEventEndIndexrecord component
-
tooNewLogEventStartIndex
Returns the value of thetooNewLogEventStartIndexrecord component.- Returns:
- the value of the
tooNewLogEventStartIndexrecord component
-
expiredLogEventEndIndex
Returns the value of theexpiredLogEventEndIndexrecord component.- Returns:
- the value of the
expiredLogEventEndIndexrecord component
-