List of usage examples for com.mongodb.event ConnectionCheckedOutEvent getConnectionId
public ConnectionId getConnectionId()
From source file:org.eclipse.ditto.services.utils.persistence.mongo.monitoring.KamonConnectionPoolListener.java
License:Open Source License
@Override public void connectionCheckedOut(final ConnectionCheckedOutEvent event) { metrics.compute(event.getConnectionId().getServerId(), (serverId, metric) -> metric.incCheckedOutCount()); }