Package com.mongodb.event
Class ConnectionAddedEvent
- java.lang.Object
-
- com.mongodb.event.ConnectionAddedEvent
-
public final class ConnectionAddedEvent extends java.lang.Object
An event for adding a new connection to the pool.- Since:
- 3.5
-
-
Constructor Summary
Constructors Constructor Description ConnectionAddedEvent(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
-
ConnectionAddedEvent
public ConnectionAddedEvent(ConnectionId connectionId)
Construct an instance- Parameters:
connectionId
- the connectionId
-
-
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
-
-