Interface ConnectionPoolMBean

    • Method Detail

      • getSize

        int getSize()
        Returns the total number of connections in the pool.
        Returns:
        total connection count
      • getIdle

        int getIdle()
        Returns the number of idle connections in the pool.
        Returns:
        idle connection count
      • getActive

        int getActive()
        Returns the number of active (in-use) connections.
        Returns:
        active connection count
      • getNumIdle

        int getNumIdle()
        Returns the number of idle connections in the pool.
        Returns:
        idle connection count
      • getNumActive

        int getNumActive()
        Returns the number of active (in-use) connections.
        Returns:
        active connection count
      • getWaitCount

        int getWaitCount()
        Returns the number of threads waiting for a connection.
        Returns:
        wait count
      • getBorrowedCount

        long getBorrowedCount()
        Returns the total number of connections borrowed since pool creation.
        Returns:
        borrowed count
      • getReturnedCount

        long getReturnedCount()
        Returns the total number of connections returned since pool creation.
        Returns:
        returned count
      • getCreatedCount

        long getCreatedCount()
        Returns the total number of connections created since pool creation.
        Returns:
        created count
      • getReleasedCount

        long getReleasedCount()
        Returns the total number of connections released since pool creation.
        Returns:
        released count
      • getReconnectedCount

        long getReconnectedCount()
        Returns the total number of reconnections since pool creation.
        Returns:
        reconnected count
      • getRemoveAbandonedCount

        long getRemoveAbandonedCount()
        Returns the total number of connections removed due to abandonment.
        Returns:
        abandoned count
      • getReleasedIdleCount

        long getReleasedIdleCount()
        Returns the total number of idle connections released by the pool cleaner.
        Returns:
        released idle count
      • checkIdle

        void checkIdle()
        Checks and cleans up idle connections in the pool.
      • checkAbandoned

        void checkAbandoned()
        Checks for and removes abandoned connections from the pool.
      • testIdle

        void testIdle()
        Validates all idle connections in the pool.
      • purge

        void purge()
        Purges all connections in the pool. For connections currently in use, these connections will be purged when returned on the pool. This call also purges connections that are idle and in the pool To only purge used/active connections see purgeOnReturn()
      • purgeOnReturn

        void purgeOnReturn()
        Purges connections when they are returned from the pool. This call does not purge idle connections until they are used. To purge idle connections see purge()
      • resetStats

        void resetStats()
        reset the statistics of this pool.