Package com.mongodb.binding
Interface AsyncWriteBinding
-
- All Superinterfaces:
ReferenceCounted
- All Known Subinterfaces:
AsyncReadWriteBinding
- All Known Implementing Classes:
AsyncClusterBinding
,AsyncSingleServerBinding
@Deprecated public interface AsyncWriteBinding extends ReferenceCounted
Deprecated.An asynchronous factory of connection sources to servers that can be written to, e.g, a standalone, a mongos, or a replica set primary.- Since:
- 3.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description SessionContext
getSessionContext()
Deprecated.Gets the session context for this binding.void
getWriteConnectionSource(SingleResultCallback<AsyncConnectionSource> callback)
Deprecated.Supply a connection source to a server that can be written toAsyncWriteBinding
retain()
Deprecated.Retain an additional reference to this object.-
Methods inherited from interface com.mongodb.binding.ReferenceCounted
getCount, release
-
-
-
-
Method Detail
-
getWriteConnectionSource
void getWriteConnectionSource(SingleResultCallback<AsyncConnectionSource> callback)
Deprecated.Supply a connection source to a server that can be written to- Parameters:
callback
- the to be passed the connection source
-
getSessionContext
SessionContext getSessionContext()
Deprecated.Gets the session context for this binding.- Returns:
- the session context, which may not be null
- Since:
- 3.6
-
retain
AsyncWriteBinding 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
-
-