Record Class ColumnarMetrics.Snapshot
java.lang.Object
java.lang.Record
io.krabka.streams.columnar.ColumnarMetrics.Snapshot
- Record Components:
batches- how many logical partition batches were processed, including failed onesinputRecords- how many records entered processingoutputRecords- how many records the topology producedfailures- how many partition batches faileddeadLetterRecords- how many records were forwarded to a dead-letter topicprocessingNanos- total processing time in nanoseconds, excluding produce and commit time
- Enclosing class:
ColumnarMetrics
public static record ColumnarMetrics.Snapshot(long batches, long inputRecords, long outputRecords, long failures, long deadLetterRecords, long processingNanos)
extends Record
One point-in-time view of the counters.
-
Constructor Summary
ConstructorsConstructorDescriptionSnapshot(long batches, long inputRecords, long outputRecords, long failures, long deadLetterRecords, long processingNanos) Creates an instance of aSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongbatches()Returns the value of thebatchesrecord component.longReturns the value of thedeadLetterRecordsrecord component.final booleanIndicates whether some other object is "equal to" this one.longfailures()Returns the value of thefailuresrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of theinputRecordsrecord component.longReturns the value of theoutputRecordsrecord component.longReturns the value of theprocessingNanosrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Snapshot
public Snapshot(long batches, long inputRecords, long outputRecords, long failures, long deadLetterRecords, long processingNanos) Creates an instance of aSnapshotrecord class.- Parameters:
batches- the value for thebatchesrecord componentinputRecords- the value for theinputRecordsrecord componentoutputRecords- the value for theoutputRecordsrecord componentfailures- the value for thefailuresrecord componentdeadLetterRecords- the value for thedeadLetterRecordsrecord componentprocessingNanos- the value for theprocessingNanosrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
batches
-
inputRecords
public long inputRecords()Returns the value of theinputRecordsrecord component.- Returns:
- the value of the
inputRecordsrecord component
-
outputRecords
public long outputRecords()Returns the value of theoutputRecordsrecord component.- Returns:
- the value of the
outputRecordsrecord component
-
failures
-
deadLetterRecords
public long deadLetterRecords()Returns the value of thedeadLetterRecordsrecord component.- Returns:
- the value of the
deadLetterRecordsrecord component
-
processingNanos
public long processingNanos()Returns the value of theprocessingNanosrecord component.- Returns:
- the value of the
processingNanosrecord component
-