Package com.mongodb.event
Class ConnectionReadyEvent
- java.lang.Object
-
- com.mongodb.event.ConnectionReadyEvent
-
public final class ConnectionReadyEvent extends Object
An event for when a connection in the pool has finished its setup and is ready for use.- Since:
- 4.0
-
-
Constructor Summary
Constructors Constructor Description ConnectionReadyEvent(ConnectionId connectionId)
Construct an instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectionId
getConnectionId()
Gets the connection idString
toString()
-
-
-
Constructor Detail
-
ConnectionReadyEvent
public ConnectionReadyEvent(ConnectionId connectionId)
Construct an instance- Parameters:
connectionId
- the connection id
-
-
Method Detail
-
getConnectionId
public ConnectionId getConnectionId()
Gets the connection id- Returns:
- the connection id
-
-