Package com.framed.streamer.dispatcher
Record Class CountingDispatcher.Snapshot
java.lang.Object
java.lang.Record
com.framed.streamer.dispatcher.CountingDispatcher.Snapshot
- Record Components:
received- datapoints handed toCountingDispatcher.push(com.framed.io.dispatch.DataPoint<?>)dropped- datapoints the bounded push queue could not accepthandlerErrors- messages that failed to parse before reaching the queueperChannel- received count per channel identifier, ordered by identifierwallElapsedMillis- wall-clock span between the first and last pushachievedHz-receiveddivided bywallElapsedMillis, in datapoints/smeanLatencyMillis- mean emit→sink latencyp50LatencyMillis- median emit→sink latencyp95LatencyMillis- 95th-percentile emit→sink latencyp99LatencyMillis- 99th-percentile emit→sink latencymaxLatencyMillis- largest observed emit→sink latency
- Enclosing class:
CountingDispatcher
public static record CountingDispatcher.Snapshot(long received, long dropped, long handlerErrors, Map<String,Long> perChannel, long wallElapsedMillis, double achievedHz, double meanLatencyMillis, long p50LatencyMillis, long p95LatencyMillis, long p99LatencyMillis, long maxLatencyMillis)
extends Record
Immutable view of one measurement run.
-
Constructor Summary
ConstructorsConstructorDescriptionSnapshot(long received, long dropped, long handlerErrors, Map<String, Long> perChannel, long wallElapsedMillis, double achievedHz, double meanLatencyMillis, long p50LatencyMillis, long p95LatencyMillis, long p99LatencyMillis, long maxLatencyMillis) Creates an instance of aSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theachievedHzrecord component.longdropped()Returns the value of thedroppedrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of thehandlerErrorsrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of themaxLatencyMillisrecord component.doubleReturns the value of themeanLatencyMillisrecord component.longReturns the value of thep50LatencyMillisrecord component.longReturns the value of thep95LatencyMillisrecord component.longReturns the value of thep99LatencyMillisrecord component.Returns the value of theperChannelrecord component.longreceived()Returns the value of thereceivedrecord component.toString()Returns a string representation of this record class.longReturns the value of thewallElapsedMillisrecord component.
-
Constructor Details
-
Snapshot
public Snapshot(long received, long dropped, long handlerErrors, Map<String, Long> perChannel, long wallElapsedMillis, double achievedHz, double meanLatencyMillis, long p50LatencyMillis, long p95LatencyMillis, long p99LatencyMillis, long maxLatencyMillis) Creates an instance of aSnapshotrecord class.- Parameters:
received- the value for thereceivedrecord componentdropped- the value for thedroppedrecord componenthandlerErrors- the value for thehandlerErrorsrecord componentperChannel- the value for theperChannelrecord componentwallElapsedMillis- the value for thewallElapsedMillisrecord componentachievedHz- the value for theachievedHzrecord componentmeanLatencyMillis- the value for themeanLatencyMillisrecord componentp50LatencyMillis- the value for thep50LatencyMillisrecord componentp95LatencyMillis- the value for thep95LatencyMillisrecord componentp99LatencyMillis- the value for thep99LatencyMillisrecord componentmaxLatencyMillis- the value for themaxLatencyMillisrecord component
-
-
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 '=='. -
received
public long received()Returns the value of thereceivedrecord component.- Returns:
- the value of the
receivedrecord component
-
dropped
public long dropped()Returns the value of thedroppedrecord component.- Returns:
- the value of the
droppedrecord component
-
handlerErrors
public long handlerErrors()Returns the value of thehandlerErrorsrecord component.- Returns:
- the value of the
handlerErrorsrecord component
-
perChannel
Returns the value of theperChannelrecord component.- Returns:
- the value of the
perChannelrecord component
-
wallElapsedMillis
public long wallElapsedMillis()Returns the value of thewallElapsedMillisrecord component.- Returns:
- the value of the
wallElapsedMillisrecord component
-
achievedHz
public double achievedHz()Returns the value of theachievedHzrecord component.- Returns:
- the value of the
achievedHzrecord component
-
meanLatencyMillis
public double meanLatencyMillis()Returns the value of themeanLatencyMillisrecord component.- Returns:
- the value of the
meanLatencyMillisrecord component
-
p50LatencyMillis
public long p50LatencyMillis()Returns the value of thep50LatencyMillisrecord component.- Returns:
- the value of the
p50LatencyMillisrecord component
-
p95LatencyMillis
public long p95LatencyMillis()Returns the value of thep95LatencyMillisrecord component.- Returns:
- the value of the
p95LatencyMillisrecord component
-
p99LatencyMillis
public long p99LatencyMillis()Returns the value of thep99LatencyMillisrecord component.- Returns:
- the value of the
p99LatencyMillisrecord component
-
maxLatencyMillis
public long maxLatencyMillis()Returns the value of themaxLatencyMillisrecord component.- Returns:
- the value of the
maxLatencyMillisrecord component
-
