Example usage for com.mongodb.event ConnectionCheckedInEvent getConnectionId

List of usage examples for com.mongodb.event ConnectionCheckedInEvent getConnectionId

Introduction

In this page you can find the example usage for com.mongodb.event ConnectionCheckedInEvent getConnectionId.

Prototype

public ConnectionId getConnectionId() 

Source Link

Document

Gets the connection id

Usage

From source file:org.eclipse.ditto.services.utils.persistence.mongo.monitoring.KamonConnectionPoolListener.java

License:Open Source License

@Override
public void connectionCheckedIn(final ConnectionCheckedInEvent event) {
    metrics.compute(event.getConnectionId().getServerId(), (serverId, metric) -> metric.decCheckedOutCount());

}