Class ConnectionCheckedInEvent

java.lang.Object
com.mongodb.event.ConnectionCheckedInEvent

public final class ConnectionCheckedInEvent extends Object
An event for checking in a connection to the pool. Such a connection is considered available until it becomes in use or closed.
Since:
3.5
  • Constructor Details

    • ConnectionCheckedInEvent

      public ConnectionCheckedInEvent(ConnectionId connectionId, long operationId)
      Construct an instance
      Parameters:
      connectionId - the connectionId
      operationId - the operation id
      Since:
      4.10
    • ConnectionCheckedInEvent

      @Deprecated public ConnectionCheckedInEvent(ConnectionId connectionId)
      Construct an instance
      Parameters:
      connectionId - the connectionId
  • Method Details

    • getConnectionId

      public ConnectionId getConnectionId()
      Gets the connection id
      Returns:
      the connection 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