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

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.