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
ConstructorsConstructorDescriptionStatistics(int maxPoolSize, int currentPoolSize, int waitingQueueSize, int connectionsPending, int connectionsIn, int connectionsOut) Creates an instance of aStatisticsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theconnectionsInrecord component.intReturns the value of theconnectionsOutrecord component.intReturns the value of theconnectionsPendingrecord component.intReturns the value of thecurrentPoolSizerecord 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 themaxPoolSizerecord component.toString()Returns a string representation of this record class.intReturns the value of thewaitingQueueSizerecord component.
-
Constructor Details
-
Statistics
public Statistics(int maxPoolSize, int currentPoolSize, int waitingQueueSize, int connectionsPending, int connectionsIn, int connectionsOut) Creates an instance of aStatisticsrecord class.- Parameters:
maxPoolSize- the value for themaxPoolSizerecord componentcurrentPoolSize- the value for thecurrentPoolSizerecord componentwaitingQueueSize- the value for thewaitingQueueSizerecord componentconnectionsPending- the value for theconnectionsPendingrecord componentconnectionsIn- the value for theconnectionsInrecord componentconnectionsOut- the value for theconnectionsOutrecord 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 themaxPoolSizerecord component.- Returns:
- the value of the
maxPoolSizerecord component
-
currentPoolSize
public int currentPoolSize()Returns the value of thecurrentPoolSizerecord component.- Returns:
- the value of the
currentPoolSizerecord component
-
waitingQueueSize
public int waitingQueueSize()Returns the value of thewaitingQueueSizerecord component.- Returns:
- the value of the
waitingQueueSizerecord component
-
connectionsPending
public int connectionsPending()Returns the value of theconnectionsPendingrecord component.- Returns:
- the value of the
connectionsPendingrecord component
-
connectionsIn
public int connectionsIn()Returns the value of theconnectionsInrecord component.- Returns:
- the value of the
connectionsInrecord component
-
connectionsOut
public int connectionsOut()Returns the value of theconnectionsOutrecord component.- Returns:
- the value of the
connectionsOutrecord component
-