Package com.mongodb.event
Class ConnectionClosedEvent
-
- com.mongodb.event.ConnectionClosedEvent
-
public final class ConnectionClosedEvent extends
Deprecated.there is no replacement for this classA connection closed event.- Since:
- 3.5
-
-
Constructor Summary
Constructors Constructor Description ConnectionClosedEvent(ConnectionId connectionId)
Deprecated.Constructs a new instance of the event.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ConnectionId
getConnectionId()
Deprecated.Gets the identifier for this connection.toString()
Deprecated.
-
-
-
Constructor Detail
-
ConnectionClosedEvent
public ConnectionClosedEvent(ConnectionId connectionId)
Deprecated.Constructs a new instance of the event.- Parameters:
connectionId
- the connection id
-
-
Method Detail
-
getConnectionId
public ConnectionId getConnectionId()
Deprecated.Gets the identifier for this connection.- Returns:
- the connection id
-
toString
public toString()
Deprecated.- Overrides:
in class
-
-