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 Details

    • Statistics

      public Statistics(int maxPoolSize, int currentPoolSize, int waitingQueueSize, int connectionsPending, int connectionsIn, int connectionsOut)
      Creates an instance of a Statistics record class.
      Parameters:
      maxPoolSize - the value for the maxPoolSize record component
      currentPoolSize - the value for the currentPoolSize record component
      waitingQueueSize - the value for the waitingQueueSize record component
      connectionsPending - the value for the connectionsPending record component
      connectionsIn - the value for the connectionsIn record component
      connectionsOut - the value for the connectionsOut record component
  • Method Details

    • toString

      public String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • maxPoolSize

      public int maxPoolSize()
      Returns the value of the maxPoolSize record component.
      Returns:
      the value of the maxPoolSize record component
    • currentPoolSize

      public int currentPoolSize()
      Returns the value of the currentPoolSize record component.
      Returns:
      the value of the currentPoolSize record component
    • waitingQueueSize

      public int waitingQueueSize()
      Returns the value of the waitingQueueSize record component.
      Returns:
      the value of the waitingQueueSize record component
    • connectionsPending

      public int connectionsPending()
      Returns the value of the connectionsPending record component.
      Returns:
      the value of the connectionsPending record component
    • connectionsIn

      public int connectionsIn()
      Returns the value of the connectionsIn record component.
      Returns:
      the value of the connectionsIn record component
    • connectionsOut

      public int connectionsOut()
      Returns the value of the connectionsOut record component.
      Returns:
      the value of the connectionsOut record component