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