Class ConnectionCreatedEvent

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

public final class ConnectionCreatedEvent extends Object
An event for creating a connection in the pool.
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