Example usage for com.mongodb.event ConnectionPoolClosedEvent getServerId

List of usage examples for com.mongodb.event ConnectionPoolClosedEvent getServerId

Introduction

In this page you can find the example usage for com.mongodb.event ConnectionPoolClosedEvent getServerId.

Prototype

public ServerId getServerId() 

Source Link

Document

Gets the server id

Usage

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());
}