@NonNullApi @NonNullFields @Incubating(since="1.2.0") public class MongoMetricsConnectionPoolListener extends com.mongodb.event.ConnectionPoolListenerAdapter
ConnectionPoolListener
for collecting connection pool metrics from MongoClient
.Constructor and Description |
---|
MongoMetricsConnectionPoolListener(MeterRegistry registry) |
Modifier and Type | Method and Description |
---|---|
void |
connectionAdded(com.mongodb.event.ConnectionAddedEvent event) |
void |
connectionCheckedIn(com.mongodb.event.ConnectionCheckedInEvent event) |
void |
connectionCheckedOut(com.mongodb.event.ConnectionCheckedOutEvent event) |
void |
connectionPoolClosed(com.mongodb.event.ConnectionPoolClosedEvent event) |
void |
connectionPoolOpened(com.mongodb.event.ConnectionPoolOpenedEvent event) |
void |
connectionRemoved(com.mongodb.event.ConnectionRemovedEvent event) |
void |
waitQueueEntered(com.mongodb.event.ConnectionPoolWaitQueueEnteredEvent event) |
void |
waitQueueExited(com.mongodb.event.ConnectionPoolWaitQueueExitedEvent event) |
public MongoMetricsConnectionPoolListener(MeterRegistry registry)
public void connectionPoolOpened(com.mongodb.event.ConnectionPoolOpenedEvent event)
connectionPoolOpened
in interface com.mongodb.event.ConnectionPoolListener
connectionPoolOpened
in class com.mongodb.event.ConnectionPoolListenerAdapter
public void connectionPoolClosed(com.mongodb.event.ConnectionPoolClosedEvent event)
connectionPoolClosed
in interface com.mongodb.event.ConnectionPoolListener
connectionPoolClosed
in class com.mongodb.event.ConnectionPoolListenerAdapter
public void connectionCheckedOut(com.mongodb.event.ConnectionCheckedOutEvent event)
connectionCheckedOut
in interface com.mongodb.event.ConnectionPoolListener
connectionCheckedOut
in class com.mongodb.event.ConnectionPoolListenerAdapter
public void connectionCheckedIn(com.mongodb.event.ConnectionCheckedInEvent event)
connectionCheckedIn
in interface com.mongodb.event.ConnectionPoolListener
connectionCheckedIn
in class com.mongodb.event.ConnectionPoolListenerAdapter
public void waitQueueEntered(com.mongodb.event.ConnectionPoolWaitQueueEnteredEvent event)
waitQueueEntered
in interface com.mongodb.event.ConnectionPoolListener
waitQueueEntered
in class com.mongodb.event.ConnectionPoolListenerAdapter
public void waitQueueExited(com.mongodb.event.ConnectionPoolWaitQueueExitedEvent event)
waitQueueExited
in interface com.mongodb.event.ConnectionPoolListener
waitQueueExited
in class com.mongodb.event.ConnectionPoolListenerAdapter
public void connectionAdded(com.mongodb.event.ConnectionAddedEvent event)
connectionAdded
in interface com.mongodb.event.ConnectionPoolListener
connectionAdded
in class com.mongodb.event.ConnectionPoolListenerAdapter
public void connectionRemoved(com.mongodb.event.ConnectionRemovedEvent event)
connectionRemoved
in interface com.mongodb.event.ConnectionPoolListener
connectionRemoved
in class com.mongodb.event.ConnectionPoolListenerAdapter