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, getSessionContextMethods inherited from interface com.mongodb.binding.AsyncWriteBinding
getSessionContext, getWriteConnectionSourceMethods inherited from interface com.mongodb.binding.ReferenceCounted
getCount, release
-
Method Details
-
retain
AsyncReadWriteBinding retain()Deprecated.Description copied from interface:ReferenceCountedRetain an additional reference to this object. All retained references must be released, or there will be a leak.- Specified by:
retainin interfaceAsyncReadBinding- Specified by:
retainin interfaceAsyncWriteBinding- Specified by:
retainin interfaceReferenceCounted- Returns:
- this
-