Record Class ConnectionPool.PoolHealthReport
java.lang.Object
java.lang.Record
com.loomcache.client.ConnectionPool.PoolHealthReport
- Enclosing class:
ConnectionPool
public static record ConnectionPool.PoolHealthReport(int totalConnections, int activeConnections, int idleConnections, long avgAcquireTimeMs, long totalCreated, long totalDestroyed)
extends Record
Pool health report record
-
Constructor Summary
ConstructorsConstructorDescriptionPoolHealthReport(int totalConnections, int activeConnections, int idleConnections, long avgAcquireTimeMs, long totalCreated, long totalDestroyed) Creates an instance of aPoolHealthReportrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theactiveConnectionsrecord component.longReturns the value of theavgAcquireTimeMsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theidleConnectionsrecord component.toString()Returns a string representation of this record class.intReturns the value of thetotalConnectionsrecord component.longReturns the value of thetotalCreatedrecord component.longReturns the value of thetotalDestroyedrecord component.
-
Constructor Details
-
PoolHealthReport
public PoolHealthReport(int totalConnections, int activeConnections, int idleConnections, long avgAcquireTimeMs, long totalCreated, long totalDestroyed) Creates an instance of aPoolHealthReportrecord class.- Parameters:
totalConnections- the value for thetotalConnectionsrecord componentactiveConnections- the value for theactiveConnectionsrecord componentidleConnections- the value for theidleConnectionsrecord componentavgAcquireTimeMs- the value for theavgAcquireTimeMsrecord componenttotalCreated- the value for thetotalCreatedrecord componenttotalDestroyed- the value for thetotalDestroyedrecord 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. -
totalConnections
public int totalConnections()Returns the value of thetotalConnectionsrecord component.- Returns:
- the value of the
totalConnectionsrecord component
-
activeConnections
public int activeConnections()Returns the value of theactiveConnectionsrecord component.- Returns:
- the value of the
activeConnectionsrecord component
-
idleConnections
public int idleConnections()Returns the value of theidleConnectionsrecord component.- Returns:
- the value of the
idleConnectionsrecord component
-
avgAcquireTimeMs
public long avgAcquireTimeMs()Returns the value of theavgAcquireTimeMsrecord component.- Returns:
- the value of the
avgAcquireTimeMsrecord component
-
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
-