Package com.mongodb.event
Class ConnectionRemovedEvent
- java.lang.Object
-
- com.mongodb.event.ConnectionRemovedEvent
-
public final class ConnectionRemovedEvent extends java.lang.ObjectAn event for removing a connection from the pool.- Since:
- 3.5
-
-
Constructor Summary
Constructors Constructor Description ConnectionRemovedEvent(ConnectionId connectionId)Construct an instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectionIdgetConnectionId()Gets the connection idjava.lang.StringtoString()
-
-
-
Constructor Detail
-
ConnectionRemovedEvent
public ConnectionRemovedEvent(ConnectionId connectionId)
Construct an instance- Parameters:
connectionId- the connectionId
-
-
Method Detail
-
getConnectionId
public ConnectionId getConnectionId()
Gets the connection id- Returns:
- the connection id
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-