@ManagedResource(description="Connection metrics") public class ConnectionMetrics extends AbstractMonitor
| Constructor and Description |
|---|
ConnectionMetrics(com.mongodb.client.MongoClient mongoClient) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAvailable() |
int |
getCurrent() |
getDb, getMongoClient, getServerStatus, hostspublic ConnectionMetrics(com.mongodb.client.MongoClient mongoClient)
mongoClient - must not be null.@ManagedMetric(metricType=GAUGE, displayName="Current Connections") public int getCurrent()
@ManagedMetric(metricType=GAUGE, displayName="Available Connections") public int getAvailable()
Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.