Class ConnectionCheckOutStartedEvent

java.lang.Object
com.mongodb.event.ConnectionCheckOutStartedEvent

public final class ConnectionCheckOutStartedEvent extends Object
An event for when the driver starts to checkout out a connection.
Since:
4.0
  • Constructor Details

    • ConnectionCheckOutStartedEvent

      public ConnectionCheckOutStartedEvent(ServerId serverId)
      Construct an instance
      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