Record Class BatchStats
java.lang.Object
java.lang.Record
codes.grow.packages.skywalking.logging.BatchStats
- Record Components:
queued- records waiting in the queue or being exported nowsent- records the exporter accepteddropped- records dropped before export (queue full or after shutdown)failed- records the exporter rejected or that failed to exportretries- export re-attempts after retryable failures
public record BatchStats(long queued, long sent, long dropped, long failed, long retries)
extends Record
Counters of a
BatchProcessor.-
Constructor Summary
ConstructorsConstructorDescriptionBatchStats(long queued, long sent, long dropped, long failed, long retries) Creates an instance of aBatchStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongdropped()Returns the value of thedroppedrecord component.final booleanIndicates whether some other object is "equal to" this one.longfailed()Returns the value of thefailedrecord component.final inthashCode()Returns a hash code value for this object.longqueued()Returns the value of thequeuedrecord component.longretries()Returns the value of theretriesrecord component.longsent()Returns the value of thesentrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BatchStats
public BatchStats(long queued, long sent, long dropped, long failed, long retries) Creates an instance of aBatchStatsrecord class.
-
-
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. All components in this record class are compared with '=='. -
queued
public long queued()Returns the value of thequeuedrecord component.- Returns:
- the value of the
queuedrecord component
-
sent
public long sent()Returns the value of thesentrecord component.- Returns:
- the value of the
sentrecord component
-
dropped
public long dropped()Returns the value of thedroppedrecord component.- Returns:
- the value of the
droppedrecord component
-
failed
public long failed()Returns the value of thefailedrecord component.- Returns:
- the value of the
failedrecord component
-
retries
public long retries()Returns the value of theretriesrecord component.- Returns:
- the value of the
retriesrecord component
-