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