Package com.mongodb.event
Class ConnectionCreatedEvent
- java.lang.Object
-
- com.mongodb.event.ConnectionCreatedEvent
-
public final class ConnectionCreatedEvent extends Object
An event for creating a connection in the pool.- Since:
- 4.0
-
-
Constructor Summary
Constructors Constructor Description ConnectionCreatedEvent(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
-
ConnectionCreatedEvent
public ConnectionCreatedEvent(ConnectionId connectionId)
Construct an instance- Parameters:
connectionId
- the connection id
-
-
Method Detail
-
getConnectionId
public ConnectionId getConnectionId()
Gets the connection id- Returns:
- the connection id
-
-