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 Details

    • Row

      public Row(WebEngineStats.Group group, LocalDate since, long activeNow, long connects, Instant lastSeen)
      Creates an instance of a Row record class.
      Parameters:
      group - the value for the group record component
      since - the value for the since record component
      activeNow - the value for the activeNow record component
      connects - the value for the connects record component
      lastSeen - the value for the lastSeen record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • group

      public WebEngineStats.Group group()
      Returns the value of the group record component.
      Returns:
      the value of the group record component
    • since

      public LocalDate since()
      Returns the value of the since record component.
      Returns:
      the value of the since record component
    • activeNow

      public long activeNow()
      Returns the value of the activeNow record component.
      Returns:
      the value of the activeNow record component
    • connects

      public long connects()
      Returns the value of the connects record component.
      Returns:
      the value of the connects record component
    • lastSeen

      public Instant lastSeen()
      Returns the value of the lastSeen record component.
      Returns:
      the value of the lastSeen record component