Record Class ReplayProtocol.ReplayStats
java.lang.Object
java.lang.Record
com.framed.communicator.driver.protocol.replay.ReplayProtocol.ReplayStats
- Record Components:
events- number of events publishedwallSeconds- wall-clock duration of the replayachievedHz- events published per wall-clock secondtargetHz- events per second the schedule called for (0when free-running)meanLagMs- mean ofactualEmit − scheduledEmit; negligible when the replay keeps pacemaxLagMs- largest single such lag
- Enclosing class:
ReplayProtocol
public static record ReplayProtocol.ReplayStats(long events, double wallSeconds, double achievedHz, double targetHz, double meanLagMs, long maxLagMs)
extends Record
Figures describing one completed replay: how much was published, how fast, and how far behind
its own schedule the replay thread ran.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ReplayProtocol.ReplayStatsThe figures of a replay that has not published anything yet. -
Constructor Summary
ConstructorsConstructorDescriptionReplayStats(long events, double wallSeconds, double achievedHz, double targetHz, double meanLagMs, long maxLagMs) Creates an instance of aReplayStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theachievedHzrecord component.final booleanIndicates whether some other object is "equal to" this one.longevents()Returns the value of theeventsrecord component.final inthashCode()Returns a hash code value for this object.longmaxLagMs()Returns the value of themaxLagMsrecord component.doubleReturns the value of themeanLagMsrecord component.doubletargetHz()Returns the value of thetargetHzrecord component.toString()Returns a string representation of this record class.doubleReturns the value of thewallSecondsrecord component.
-
Field Details
-
EMPTY
The figures of a replay that has not published anything yet.
-
-
Constructor Details
-
ReplayStats
public ReplayStats(long events, double wallSeconds, double achievedHz, double targetHz, double meanLagMs, long maxLagMs) Creates an instance of aReplayStatsrecord class.- Parameters:
events- the value for theeventsrecord componentwallSeconds- the value for thewallSecondsrecord componentachievedHz- the value for theachievedHzrecord componenttargetHz- the value for thetargetHzrecord componentmeanLagMs- the value for themeanLagMsrecord componentmaxLagMs- the value for themaxLagMsrecord 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. All components in this record class are compared with '=='. -
events
public long events()Returns the value of theeventsrecord component.- Returns:
- the value of the
eventsrecord component
-
wallSeconds
public double wallSeconds()Returns the value of thewallSecondsrecord component.- Returns:
- the value of the
wallSecondsrecord component
-
achievedHz
public double achievedHz()Returns the value of theachievedHzrecord component.- Returns:
- the value of the
achievedHzrecord component
-
targetHz
public double targetHz()Returns the value of thetargetHzrecord component.- Returns:
- the value of the
targetHzrecord component
-
meanLagMs
public double meanLagMs()Returns the value of themeanLagMsrecord component.- Returns:
- the value of the
meanLagMsrecord component
-
maxLagMs
public long maxLagMs()Returns the value of themaxLagMsrecord component.- Returns:
- the value of the
maxLagMsrecord component
-
