Class ConnectionCheckOutStartedEvent

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

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

    • ConnectionCheckOutStartedEvent

      public ConnectionCheckOutStartedEvent(ServerId serverId, long operationId)
      Construct an instance
      Parameters:
      serverId - the server id
      operationId - the operation id
      Since:
      4.10
    • ConnectionCheckOutStartedEvent

      @Deprecated 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
    • getOperationId

      public long getOperationId()
      Gets the operation identifier
      Returns:
      the operation identifier
      Since:
      4.10
    • toString

      public String toString()
      Overrides:
      toString in class Object