Record Class LogEventBatching.BatchPlan
java.lang.Object
java.lang.Record
codes.grow.packages.cloudwatchlogs.LogEventBatching.BatchPlan
- Record Components:
batches- batches in send order; each is sorted by timestamp and within every limittruncated- events that were truncateddropped- events that were dropped (OversizePolicy.DROP)
- Enclosing class:
LogEventBatching
public static record LogEventBatching.BatchPlan(List<List<LogEventBatching.WireEvent>> batches, int truncated, int dropped)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBatchPlan(List<List<LogEventBatching.WireEvent>> batches, int truncated, int dropped) Copies the batches. -
Method Summary
Modifier and TypeMethodDescriptionbatches()Returns the value of thebatchesrecord component.intdropped()Returns the value of thedroppedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.intReturns the value of thetruncatedrecord component.
-
Constructor Details
-
BatchPlan
Copies the batches.- Parameters:
batches- batchestruncated- truncated countdropped- dropped count
-
-
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 '=='. -
batches
Returns the value of thebatchesrecord component.- Returns:
- the value of the
batchesrecord component
-
truncated
public int truncated()Returns the value of thetruncatedrecord component.- Returns:
- the value of the
truncatedrecord component
-
dropped
public int dropped()Returns the value of thedroppedrecord component.- Returns:
- the value of the
droppedrecord component
-