Package com.mongodb.binding
Interface AsyncReadWriteBinding
- All Superinterfaces:
AsyncReadBinding
,AsyncWriteBinding
,ReferenceCounted
- All Known Implementing Classes:
AsyncClusterBinding
,AsyncSingleServerBinding
@Deprecated
public interface AsyncReadWriteBinding
extends AsyncReadBinding, AsyncWriteBinding, ReferenceCounted
Deprecated.
An asynchronous factory of connection sources to servers that can be read from or written to.
- Since:
- 3.0
-
Method Summary
Modifier and TypeMethodDescriptionretain()
Deprecated.Retain an additional reference to this object.Methods inherited from interface com.mongodb.binding.AsyncReadBinding
getReadConnectionSource, getReadPreference, getSessionContext
Methods inherited from interface com.mongodb.binding.AsyncWriteBinding
getSessionContext, getWriteConnectionSource
Methods inherited from interface com.mongodb.binding.ReferenceCounted
getCount, release
-
Method Details
-
retain
AsyncReadWriteBinding 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 interfaceAsyncReadBinding
- Specified by:
retain
in interfaceAsyncWriteBinding
- Specified by:
retain
in interfaceReferenceCounted
- Returns:
- this
-