Record Class Tm1SessionPool.Stats
java.lang.Object
java.lang.Record
io.skipcheck.tm1.client.session.Tm1SessionPool.Stats
- Record Components:
held- sessions in the pool nowclosing- evicted sessions in their grace period, not yet closedcreated- sessions created so farevictedIdle- sessions evicted for being idleevictedAge- sessions evicted for their ageevictedSize- sessions evicted to keep the pool within its sizeclosed- 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
ConstructorsConstructorDescriptionStats(int held, int closing, long created, long evictedIdle, long evictedAge, long evictedSize, long closed) Creates an instance of aStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongclosed()Returns the value of theclosedrecord component.intclosing()Returns the value of theclosingrecord component.longcreated()Returns the value of thecreatedrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theevictedAgerecord component.longReturns the value of theevictedIdlerecord component.longReturns the value of theevictedSizerecord component.final inthashCode()Returns a hash code value for this object.intheld()Returns the value of theheldrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Stats
public Stats(int held, int closing, long created, long evictedIdle, long evictedAge, long evictedSize, long closed) Creates an instance of aStatsrecord class.- Parameters:
held- the value for theheldrecord componentclosing- the value for theclosingrecord componentcreated- the value for thecreatedrecord componentevictedIdle- the value for theevictedIdlerecord componentevictedAge- the value for theevictedAgerecord componentevictedSize- the value for theevictedSizerecord componentclosed- the value for theclosedrecord component
-
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
held
-
closing
-
created
-
evictedIdle
public long evictedIdle()Returns the value of theevictedIdlerecord component.- Returns:
- the value of the
evictedIdlerecord component
-
evictedAge
public long evictedAge()Returns the value of theevictedAgerecord component.- Returns:
- the value of the
evictedAgerecord component
-
evictedSize
public long evictedSize()Returns the value of theevictedSizerecord component.- Returns:
- the value of the
evictedSizerecord component
-
closed
-