Class ConnectionOpenedEvent

java.lang.Object
com.mongodb.event.ConnectionOpenedEvent

@Deprecated public final class ConnectionOpenedEvent extends Object
Deprecated.
there is no replacement for this class
An event for opening a new connection.
Since:
3.5
  • Constructor Details

    • ConnectionOpenedEvent

      public ConnectionOpenedEvent(ConnectionId connectionId)
      Deprecated.
      Construct an instance
      Parameters:
      connectionId - the connectionId
  • Method Details

    • getConnectionId

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

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