Package com.mongodb.event
Class ConnectionPoolClearedEvent
- java.lang.Object
-
- com.mongodb.event.ConnectionPoolClearedEvent
-
public final class ConnectionPoolClearedEvent extends java.lang.Object
An event signifying when a connection pool is cleared.- Since:
- 4.0
-
-
Constructor Summary
Constructors Constructor Description ConnectionPoolClearedEvent(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
-
ConnectionPoolClearedEvent
public ConnectionPoolClearedEvent(ServerId serverId)
Constructs a new instance of the event.- Parameters:
serverId
- the server id
-
-
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
-
-