Interface ConnectionPoolStatisticsMBean


  • @Deprecated(since="2021-05-27")
    public interface ConnectionPoolStatisticsMBean
    Deprecated.
    Usage of this API is not supported in AEM as a Cloud Service.

    A standard MXBean interface for a Mongo connection pool, for use on Java 6 and above virtual machines.

    This interface is NOT part of the public API. Be prepared for non-binary compatible changes in minor releases.

    Since:
    2.12
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      int getCheckedOutCount()
      Deprecated.
      Gets the count of connections that are currently in use.
      String getHost()
      Deprecated.
      Gets the host that this connection pool is connecting to.
      int getMaxSize()
      Deprecated.
      Gets the maximum allowed size of the pool, including idle and in-use members.
      int getMinSize()
      Deprecated.
      Gets the minimum allowed size of the pool, including idle and in-use members.
      int getPort()
      Deprecated.
      Gets the port that this connection pool is connecting to.
      int getSize()
      Deprecated.
      Gets the current size of the pool, including idle and and in-use members.
      int getWaitQueueSize()
      Deprecated.
      In the next major release, wait queue events will no longer be published so this statistic will be unavailable
    • Method Detail

      • getHost

        String getHost()
        Deprecated.
        Gets the host that this connection pool is connecting to.
        Returns:
        the host
      • getPort

        int getPort()
        Deprecated.
        Gets the port that this connection pool is connecting to.
        Returns:
        the port
      • getMinSize

        int getMinSize()
        Deprecated.
        Gets the minimum allowed size of the pool, including idle and in-use members.
        Returns:
        the minimum size
      • getMaxSize

        int getMaxSize()
        Deprecated.
        Gets the maximum allowed size of the pool, including idle and in-use members.
        Returns:
        the maximum size
      • getSize

        int getSize()
        Deprecated.
        Gets the current size of the pool, including idle and and in-use members.
        Returns:
        the size
      • getCheckedOutCount

        int getCheckedOutCount()
        Deprecated.
        Gets the count of connections that are currently in use.
        Returns:
        count of in-use connections
      • getWaitQueueSize

        @Deprecated
        int getWaitQueueSize()
        Deprecated.
        In the next major release, wait queue events will no longer be published so this statistic will be unavailable
        Gets the size of the wait queue for a connection from this pool. *
        Returns:
        size of the wait queue