Package com.mongodb.event
Class ConnectionCreatedEvent
- java.lang.Object
-
- com.mongodb.event.ConnectionCreatedEvent
-
public final class ConnectionCreatedEvent extends java.lang.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 idjava.lang.String
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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-