Interface MongoConnectionPoolTagsProvider
- All Known Implementing Classes:
DefaultMongoConnectionPoolTagsProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Provides
Tags
for Mongo connection pool metrics.- Since:
- 1.7.0
-
Method Summary
Modifier and TypeMethodDescriptionconnectionPoolTags
(com.mongodb.event.ConnectionPoolCreatedEvent event) Provides tags to be associated with the Mongo connection metrics for the givenevent
.
-
Method Details
-
connectionPoolTags
Provides tags to be associated with the Mongo connection metrics for the givenevent
.- Parameters:
event
- The Mongo event of when the connection pool is opened- Returns:
- tags to be associated with metrics recorded for the connection pool
-