Package com.mongodb.binding
Interface ConnectionSource
-
- All Superinterfaces:
ReferenceCounted
@Deprecated public interface ConnectionSource extends ReferenceCounted
Deprecated.A source of connections to a single MongoDB server.- Since:
- 3.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Connection
getConnection()
Deprecated.Gets a connection from this source.ServerDescription
getServerDescription()
Deprecated.Gets the current description of this source.SessionContext
getSessionContext()
Deprecated.Gets the session context for this sourceConnectionSource
retain()
Deprecated.Retain an additional reference to this object.-
Methods inherited from interface com.mongodb.binding.ReferenceCounted
getCount, release
-
-
-
-
Method Detail
-
getServerDescription
ServerDescription getServerDescription()
Deprecated.Gets the current description of this source.- Returns:
- the current details of the server state.
-
getSessionContext
SessionContext getSessionContext()
Deprecated.Gets the session context for this source- Returns:
- the session context, which may not be null
- Since:
- 3.6
-
getConnection
Connection getConnection()
Deprecated.Gets a connection from this source.- Returns:
- the connection
-
retain
ConnectionSource retain()
Deprecated.Description copied from interface:ReferenceCounted
Retain an additional reference to this object. All retained references must be released, or there will be a leak.- Specified by:
retain
in interfaceReferenceCounted
- Returns:
- this
-
-