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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getCheckedOutCount()
Gets the count of connections that are currently in use.String
getHost()
Gets the host that this connection pool is connecting to.int
getMaxSize()
Gets the maximum allowed size of the pool, including idle and in-use members.int
getMinSize()
Gets the minimum allowed size of the pool, including idle and in-use members.int
getPort()
Gets the port that this connection pool is connecting to.int
getSize()
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
-
-