Package com.mongodb.event
Class ConnectionPoolClosedEvent
-
- com.mongodb.event.ConnectionPoolClosedEvent
-
public final class ConnectionPoolClosedEvent extends
An event signifying the closing of a connection pool.- Since:
- 3.5
-
-
Constructor Summary
Constructors Constructor Description ConnectionPoolClosedEvent(ServerId serverId)
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 idtoString()
-
-
-
Constructor Detail
-
ConnectionPoolClosedEvent
public ConnectionPoolClosedEvent(ServerId serverId)
Constructs a new instance of the event.- Parameters:
serverId
- the server ide
-
-
Method Detail
-
getServerId
public ServerId getServerId()
Gets the server id- Returns:
- the server id
-
toString
public toString()
- Overrides:
in class
-
-