Class ConnectionClosedEvent

java.lang.Object
com.mongodb.event.ConnectionClosedEvent

@Deprecated public final class ConnectionClosedEvent extends Object
Deprecated.
there is no replacement for this class
A connection closed event.
Since:
3.5
  • Constructor Details

    • ConnectionClosedEvent

      public ConnectionClosedEvent(ConnectionId connectionId)
      Deprecated.
      Constructs a new instance of the event.
      Parameters:
      connectionId - the connection id
  • Method Details

    • getConnectionId

      public ConnectionId getConnectionId()
      Deprecated.
      Gets the identifier for this connection.
      Returns:
      the connection id
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object