Record Class ConnectionPool.PoolStats
java.lang.Object
java.lang.Record
com.loomcache.client.ConnectionPool.PoolStats
- Enclosing class:
ConnectionPool
public static record ConnectionPool.PoolStats(long totalCreated, long totalDestroyed, int activeCount, int idleCount, long healthCheckFailures)
extends Record
Pool statistics record (totalCreated, totalDestroyed, activeCount, idleCount, waitingCount)
-
Constructor Summary
ConstructorsConstructorDescriptionPoolStats(long totalCreated, long totalDestroyed, int activeCount, int idleCount, long healthCheckFailures) Creates an instance of aPoolStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theactiveCountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of thehealthCheckFailuresrecord component.intReturns the value of theidleCountrecord component.toString()Returns a string representation of this record class.longReturns the value of thetotalCreatedrecord component.longReturns the value of thetotalDestroyedrecord component.
-
Constructor Details
-
PoolStats
public PoolStats(long totalCreated, long totalDestroyed, int activeCount, int idleCount, long healthCheckFailures) Creates an instance of aPoolStatsrecord class.- Parameters:
totalCreated- the value for thetotalCreatedrecord componenttotalDestroyed- the value for thetotalDestroyedrecord componentactiveCount- the value for theactiveCountrecord componentidleCount- the value for theidleCountrecord componenthealthCheckFailures- the value for thehealthCheckFailuresrecord 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. -
totalCreated
public long totalCreated()Returns the value of thetotalCreatedrecord component.- Returns:
- the value of the
totalCreatedrecord component
-
totalDestroyed
public long totalDestroyed()Returns the value of thetotalDestroyedrecord component.- Returns:
- the value of the
totalDestroyedrecord component
-
activeCount
public int activeCount()Returns the value of theactiveCountrecord component.- Returns:
- the value of the
activeCountrecord component
-
idleCount
public int idleCount()Returns the value of theidleCountrecord component.- Returns:
- the value of the
idleCountrecord component
-
healthCheckFailures
public long healthCheckFailures()Returns the value of thehealthCheckFailuresrecord component.- Returns:
- the value of the
healthCheckFailuresrecord component
-