Package com.mongodb.event
Class ConnectionAddedEvent
- java.lang.Object
-
- com.mongodb.event.ConnectionAddedEvent
-
@Deprecated public final class ConnectionAddedEvent extends Object
Deprecated.PreferConnectionCreatedEvent
An event for adding a new connection to the pool.- Since:
- 3.5
-
-
Constructor Summary
Constructors Constructor Description ConnectionAddedEvent(ConnectionId connectionId)
Deprecated.Construct an instance
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ConnectionId
getConnectionId()
Deprecated.Gets the connection idString
toString()
Deprecated.
-
-
-
Constructor Detail
-
ConnectionAddedEvent
public ConnectionAddedEvent(ConnectionId connectionId)
Deprecated.Construct an instance- Parameters:
connectionId
- the connectionId
-
-
Method Detail
-
getConnectionId
public ConnectionId getConnectionId()
Deprecated.Gets the connection id- Returns:
- the connection id
-
-