ConnectionPoolStatisticsMBean (driver-core 5.5.0 API) (original) (raw)
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
int
Gets the count of connections that are currently in use.[getHost](#getHost%28%29)()
Gets the host that this connection pool is connecting to.int
Gets the maximum allowed size of the pool, including idle and in-use members.int
Gets the minimum allowed size of the pool, including idle and in-use members.int
[getPort](#getPort%28%29)()
Gets the port that this connection pool is connecting to.int
[getSize](#getSize%28%29)()
Gets the current size of the pool, including idle and in-use members.
Method Details
getHost
Gets the host that this connection pool is connecting to.
Returns:
the hostgetPort
int getPort()
Gets the port that this connection pool is connecting to.
Returns:
the portgetMinSize
int getMinSize()
Gets the minimum allowed size of the pool, including idle and in-use members.
Returns:
the minimum sizegetMaxSize
int getMaxSize()
Gets the maximum allowed size of the pool, including idle and in-use members.
Returns:
the maximum sizegetSize
int getSize()
Gets the current size of the pool, including idle and in-use members.
Returns:
the sizegetCheckedOutCount
int getCheckedOutCount()
Gets the count of connections that are currently in use.
Returns:
count of in-use connections