Record Class WebEngineStats.Snapshot
java.lang.Object
java.lang.Record
com.iizix.server.webengine.WebEngineStats.Snapshot
- Record Components:
since- When counting started: the server start.totals- The totals of every status, all four present.rows- The group rows: ENDED first, then BEHIND, then the others, within a status the row with the most connects first.
- Enclosing class:
WebEngineStats
public static record WebEngineStats.Snapshot(Instant since, Map<WebEngineStatus.Status, WebEngineStats.Totals> totals, List<WebEngineStats.Row> rows) extends Record
The counts at one moment, detached from the live instance.
- Author:
- Christopher Mindus
Constructor Summary
ConstructorsConstructorDescriptionSnapshot(Instant since, Map<WebEngineStatus.Status, WebEngineStats.Totals> totals, List<WebEngineStats.Row> rows) Creates an instance of aSnapshotrecord class.Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.of(WebEngineStatus.Status status) Gets the totals of a status.rows()Returns the value of therowsrecord component.since()Returns the value of thesincerecord component.final StringtoString()Returns a string representation of this record class.totals()Returns the value of thetotalsrecord component.Gets the totals of the sessions ServerAdmin counts as unpatched: BEHIND and ENDED together.
Constructor Details
Snapshot
public Snapshot(Instant since, Map<WebEngineStatus.Status, WebEngineStats.Totals> totals, List<WebEngineStats.Row> rows) Creates an instance of aSnapshotrecord class.
Method Details
of
Gets the totals of a status.- Parameters:
status- The status.- Returns:
- The totals, never null.
unpatched
Gets the totals of the sessions ServerAdmin counts as unpatched: BEHIND and ENDED together.- Returns:
- The totals.
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 withObjects::equals(Object,Object).since
totals
rows