Package com.mongodb.management
Interface ConnectionPoolStatisticsMBean
public interface ConnectionPoolStatisticsMBean
A 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 SummaryModifier and TypeMethodDescriptionintGets the count of connections that are currently in use.getHost()Gets the host that this connection pool is connecting to.intGets the maximum allowed size of the pool, including idle and in-use members.intGets 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 in-use members.
- 
Method Details- 
getHostString getHost()Gets the host that this connection pool is connecting to.- Returns:
- the host
 
- 
getPortint getPort()Gets the port that this connection pool is connecting to.- Returns:
- the port
 
- 
getMinSizeint getMinSize()Gets the minimum allowed size of the pool, including idle and in-use members.- Returns:
- the minimum size
 
- 
getMaxSizeint getMaxSize()Gets the maximum allowed size of the pool, including idle and in-use members.- Returns:
- the maximum size
 
- 
getSizeint getSize()Gets the current size of the pool, including idle and in-use members.- Returns:
- the size
 
- 
getCheckedOutCountint getCheckedOutCount()Gets the count of connections that are currently in use.- Returns:
- count of in-use connections
 
 
-