Package com.mongodb.event
Class ConnectionCheckOutStartedEvent
- java.lang.Object
-
- com.mongodb.event.ConnectionCheckOutStartedEvent
-
public final class ConnectionCheckOutStartedEvent extends java.lang.Object
An event for when the driver starts to checkout out a connection.- Since:
- 4.0
-
-
Constructor Summary
Constructors Constructor Description ConnectionCheckOutStartedEvent(ServerId serverId)
Construct an instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerId
getServerId()
Gets the server idjava.lang.String
toString()
-
-
-
Constructor Detail
-
ConnectionCheckOutStartedEvent
public ConnectionCheckOutStartedEvent(ServerId serverId)
Construct an instance- Parameters:
serverId
- the server id
-
-
Method Detail
-
getServerId
public ServerId getServerId()
Gets the server id- Returns:
- the server id
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-