Class ConnectionAddedEvent

java.lang.Object
com.mongodb.event.ConnectionAddedEvent

@Deprecated public final class ConnectionAddedEvent extends Object
Deprecated.
An event for adding a new connection to the pool.
Since:
3.5
  • Constructor Details

    • ConnectionAddedEvent

      public ConnectionAddedEvent(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