Package com.mongodb.management
Interface ConnectionPoolStatisticsMBean
-
public interface ConnectionPoolStatisticsMBeanA standard MXBean interface for a Mongo connection pool.
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 Modifier and Type Method Description intgetCheckedOutCount()Gets the count of connections that are currently in use.StringgetHost()Gets the host that this connection pool is connecting to.intgetMaxSize()Gets the maximum allowed size of the pool, including idle and in-use members.intgetMinSize()Gets the minimum allowed size of the pool, including idle and in-use members.intgetPort()Gets the port that this connection pool is connecting to.intgetSize()Gets the current size of the pool, including idle and and in-use members.
-
-
-
Method Detail
-
getHost
String getHost()
Gets the host that this connection pool is connecting to.- Returns:
- the host
-
getPort
int getPort()
Gets the port that this connection pool is connecting to.- Returns:
- the port
-
getMinSize
int getMinSize()
Gets the minimum allowed size of the pool, including idle and in-use members.- Returns:
- the minimum size
-
getMaxSize
int getMaxSize()
Gets the maximum allowed size of the pool, including idle and in-use members.- Returns:
- the maximum size
-
getSize
int getSize()
Gets the current size of the pool, including idle and and in-use members.- Returns:
- the size
-
getCheckedOutCount
int getCheckedOutCount()
Gets the count of connections that are currently in use.- Returns:
- count of in-use connections
-
-