Class ConnectionMetrics
java.lang.Object
org.springframework.data.mongodb.monitor.AbstractMonitor
org.springframework.data.mongodb.monitor.ConnectionMetrics
@ManagedResource(description="Connection metrics")
public class ConnectionMetrics
extends AbstractMonitor
JMX Metrics for Connections
- Author:
- Mark Pollack
-
Constructor Summary
-
Method Summary
Methods inherited from class org.springframework.data.mongodb.monitor.AbstractMonitor
getDb, getMongoClient, getServerStatus, hosts
-
Constructor Details
-
ConnectionMetrics
public ConnectionMetrics(com.mongodb.client.MongoClient mongoClient) - Parameters:
mongoClient
- must not be null.- Since:
- 2.2
-
-
Method Details
-
getCurrent
-
getAvailable
-