Package com.mongodb.event
Class ConnectionRemovedEvent
java.lang.Object
com.mongodb.event.ConnectionRemovedEvent
Deprecated.
An event for removing a connection from the pool.
- Since:
- 3.5
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Deprecated.An enumeration of the reasons a connection could be closed -
Constructor Summary
ConstructorDescriptionConnectionRemovedEvent
(ConnectionId connectionId, ConnectionRemovedEvent.Reason reason) Deprecated.Constructs an instance. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Gets the connection idDeprecated.Get the reason the connection was removed.toString()
Deprecated.
-
Constructor Details
-
ConnectionRemovedEvent
Deprecated.Constructs an instance.- Parameters:
connectionId
- the connection idreason
- the reason the connection was closed- Since:
- 3.11
-
-
Method Details
ConnectionClosedEvent