Package com.mongodb.event
Class ConnectionPoolCreatedEvent
- java.lang.Object
-
- com.mongodb.event.ConnectionPoolCreatedEvent
-
public final class ConnectionPoolCreatedEvent extends Object
An event signifying that a connection pool was created.- Since:
- 4.0
-
-
Constructor Summary
Constructors Constructor Description ConnectionPoolCreatedEvent(ServerId serverId, ConnectionPoolSettings settings)
Constructs a new instance of the event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerId
getServerId()
Gets the server idConnectionPoolSettings
getSettings()
Gets the connection pool settings.String
toString()
-
-
-
Constructor Detail
-
ConnectionPoolCreatedEvent
public ConnectionPoolCreatedEvent(ServerId serverId, ConnectionPoolSettings settings)
Constructs a new instance of the event.- Parameters:
serverId
- the server idsettings
- the connection pool settings
-
-
Method Detail
-
getServerId
public ServerId getServerId()
Gets the server id- Returns:
- the server id
-
getSettings
public ConnectionPoolSettings getSettings()
Gets the connection pool settings.- Returns:
- the connection pool setttings.
-
-