Class ConnectionCheckOutFailedEvent

java.lang.Object
com.mongodb.event.ConnectionCheckOutFailedEvent

public final class ConnectionCheckOutFailedEvent extends Object
An event for when checking out a connection fails.
Since:
4.0
  • Constructor Details

  • 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
    • getReason

      Gets the reason for the check out failure.
      Returns:
      the reason
      Since:
      4.3
    • toString

      public String toString()
      Overrides:
      toString in class Object