Class ConnectionReadyEvent

java.lang.Object
com.mongodb.event.ConnectionReadyEvent

public final class ConnectionReadyEvent extends Object
An event for when a connection in the pool has finished its setup and is ready for use.
Since:
4.0
  • Constructor Details

    • ConnectionReadyEvent

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