Record Class Tm1SessionPool.Stats

java.lang.Object
java.lang.Record
io.skipcheck.tm1.client.session.Tm1SessionPool.Stats
Record Components:
held - sessions in the pool now
closing - evicted sessions in their grace period, not yet closed
created - sessions created so far
evictedIdle - sessions evicted for being idle
evictedAge - sessions evicted for their age
evictedSize - sessions evicted to keep the pool within its size
closed - sessions closed on TM1 so far
Enclosing class:
Tm1SessionPool

public static record Tm1SessionPool.Stats(int held, int closing, long created, long evictedIdle, long evictedAge, long evictedSize, long closed) extends Record
What a pool holds and has done.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Stats(int held, int closing, long created, long evictedIdle, long evictedAge, long evictedSize, long closed)
    Creates an instance of a Stats record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the value of the closed record component.
    int
    Returns the value of the closing record component.
    long
    Returns the value of the created record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    long
    Returns the value of the evictedAge record component.
    long
    Returns the value of the evictedIdle record component.
    long
    Returns the value of the evictedSize record component.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the held record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Stats

      public Stats(int held, int closing, long created, long evictedIdle, long evictedAge, long evictedSize, long closed)
      Creates an instance of a Stats record class.
      Parameters:
      held - the value for the held record component
      closing - the value for the closing record component
      created - the value for the created record component
      evictedIdle - the value for the evictedIdle record component
      evictedAge - the value for the evictedAge record component
      evictedSize - the value for the evictedSize record component
      closed - the value for the closed 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. All components in this record class 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.
    • held

      public int held()
      Returns the value of the held record component.
      Returns:
      the value of the held record component
    • closing

      public int closing()
      Returns the value of the closing record component.
      Returns:
      the value of the closing record component
    • created

      public long created()
      Returns the value of the created record component.
      Returns:
      the value of the created record component
    • evictedIdle

      public long evictedIdle()
      Returns the value of the evictedIdle record component.
      Returns:
      the value of the evictedIdle record component
    • evictedAge

      public long evictedAge()
      Returns the value of the evictedAge record component.
      Returns:
      the value of the evictedAge record component
    • evictedSize

      public long evictedSize()
      Returns the value of the evictedSize record component.
      Returns:
      the value of the evictedSize record component
    • closed

      public long closed()
      Returns the value of the closed record component.
      Returns:
      the value of the closed record component