Record Class WebEngineStats.Row
java.lang.Object
java.lang.Record
com.iizix.server.webengine.WebEngineStats.Row
- Record Components:
group- The group.since- The day the engine of the group stopped receiving security updates, as the last session counted in the row had it, or null.activeNow- The sessions of the group connected now.connects- The connects of the group since the server started.lastSeen- When a session was last counted in or moved to the row.
- Enclosing class:
WebEngineStats
public static record WebEngineStats.Row(WebEngineStats.Group group, LocalDate since, long activeNow, long connects, Instant lastSeen) extends Record
One group row of a snapshot.
- Author:
- Christopher Mindus
Constructor Summary
ConstructorsConstructorDescriptionRow(WebEngineStats.Group group, LocalDate since, long activeNow, long connects, Instant lastSeen) Creates an instance of aRowrecord class.Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theactiveNowrecord component.longconnects()Returns the value of theconnectsrecord component.final booleanIndicates whether some other object is "equal to" this one.group()Returns the value of thegrouprecord component.final inthashCode()Returns a hash code value for this object.lastSeen()Returns the value of thelastSeenrecord component.since()Returns the value of thesincerecord component.final StringtoString()Returns a string representation of this record class.
Constructor Details
Row
public Row(WebEngineStats.Group group, LocalDate since, long activeNow, long connects, Instant lastSeen) Creates an instance of aRowrecord class.
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes.group
since
activeNow
connects
lastSeen