Package org.forgerock.opendj.ldap
Record Class ConnectionPool.Statistics
java.lang.Object
java.lang.Record
org.forgerock.opendj.ldap.ConnectionPool.Statistics
- Record Components:
maxPoolSize
- the maximum size of the pool.currentPoolSize
- The current size of the pool. This includes connections which are currently in use by the application, connections sitting idle in the queue and pending connections which are currently in the process of being established. The returned value is always less than or equal to the maximum pool size.waitingQueueSize
- The number of subscribers waiting for a connection to become available or established.connectionsPending
- The number of connections which are in the process of being established.connectionsIn
- The number of connections which are sitting idle in the connection pool.connectionsOut
- The number of connections which have been acquired by the application.
- Enclosing class:
- ConnectionPool
public static record ConnectionPool.Statistics(int maxPoolSize, int currentPoolSize, int waitingQueueSize, int connectionsPending, int connectionsIn, int connectionsOut)
extends Record
Statistics for a connection pool.
-
Constructor Summary
ConstructorDescriptionStatistics
(int maxPoolSize, int currentPoolSize, int waitingQueueSize, int connectionsPending, int connectionsIn, int connectionsOut) Creates an instance of aStatistics
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the value of theconnectionsIn
record component.int
Returns the value of theconnectionsOut
record component.int
Returns the value of theconnectionsPending
record component.int
Returns the value of thecurrentPoolSize
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
Returns the value of themaxPoolSize
record component.toString()
Returns a string representation of this record class.int
Returns the value of thewaitingQueueSize
record component.
-
Constructor Details
-
Statistics
public Statistics(int maxPoolSize, int currentPoolSize, int waitingQueueSize, int connectionsPending, int connectionsIn, int connectionsOut) Creates an instance of aStatistics
record class.- Parameters:
maxPoolSize
- the value for themaxPoolSize
record componentcurrentPoolSize
- the value for thecurrentPoolSize
record componentwaitingQueueSize
- the value for thewaitingQueueSize
record componentconnectionsPending
- the value for theconnectionsPending
record componentconnectionsIn
- the value for theconnectionsIn
record componentconnectionsOut
- the value for theconnectionsOut
record component
-
-
Method Details
-
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. -
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. -
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 '=='. -
maxPoolSize
public int maxPoolSize()Returns the value of themaxPoolSize
record component.- Returns:
- the value of the
maxPoolSize
record component
-
currentPoolSize
public int currentPoolSize()Returns the value of thecurrentPoolSize
record component.- Returns:
- the value of the
currentPoolSize
record component
-
waitingQueueSize
public int waitingQueueSize()Returns the value of thewaitingQueueSize
record component.- Returns:
- the value of the
waitingQueueSize
record component
-
connectionsPending
public int connectionsPending()Returns the value of theconnectionsPending
record component.- Returns:
- the value of the
connectionsPending
record component
-
connectionsIn
public int connectionsIn()Returns the value of theconnectionsIn
record component.- Returns:
- the value of the
connectionsIn
record component
-
connectionsOut
public int connectionsOut()Returns the value of theconnectionsOut
record component.- Returns:
- the value of the
connectionsOut
record component
-