Class ConnectionPoolClosedEvent

java.lang.Object
com.mongodb.event.ConnectionPoolClosedEvent

public final class ConnectionPoolClosedEvent extends Object
An event signifying the closing of a connection pool.
Since:
3.5
  • Constructor Details

    • ConnectionPoolClosedEvent

      public ConnectionPoolClosedEvent(ServerId serverId)
      Constructs a new instance of the event.
      Parameters:
      serverId - the server id
  • Method Details

    • getServerId

      public ServerId getServerId()
      Gets the server id
      Returns:
      the server id
    • toString

      public String toString()
      Overrides:
      toString in class Object