Package com.mongodb.event
Class ConnectionPoolClosedEvent
- java.lang.Object
-
- com.mongodb.event.ConnectionPoolClosedEvent
-
public final class ConnectionPoolClosedEvent extends java.lang.Object
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 idjava.lang.String
toString()
-
-
-
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 java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-