List of usage examples for com.mongodb.event ConnectionPoolClosedEvent getServerId
public ServerId getServerId()
From source file:org.eclipse.ditto.services.utils.persistence.mongo.monitoring.KamonConnectionPoolListener.java
License:Open Source License
@Override public void connectionPoolClosed(final ConnectionPoolClosedEvent event) { if (LOGGER.isDebugEnabled()) { LOGGER.debug("Connection pool closed: {}", event); }/*from w w w .j a v a 2s .c o m*/ metrics.remove(event.getServerId()); }