Class ConnectionCreatedEvent

java.lang.Object
com.mongodb.event.ConnectionCreatedEvent

public final class ConnectionCreatedEvent extends Object
An event for creating a connection in the pool. Such a connection is considered pending until it is finished being established and becomes available.
Since:
4.0
  • Constructor Details

    • ConnectionCreatedEvent

      public ConnectionCreatedEvent(ConnectionId connectionId)
      Construct an instance
      Parameters:
      connectionId - the connection id
  • Method Details

    • getConnectionId

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

      public String toString()
      Overrides:
      toString in class Object