@Deprecated public class AsyncSingleConnectionReadBinding extends com.mongodb.internal.binding.AbstractReferenceCounted implements AsyncReadBinding
| Constructor and Description |
|---|
AsyncSingleConnectionReadBinding(ReadPreference readPreference,
ServerDescription serverDescription,
AsyncConnection connection)
Deprecated.
Construct an instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
getReadConnectionSource(SingleResultCallback<AsyncConnectionSource> callback)
Deprecated.
Returns a connection source to a server that satisfies the specified read preference.
|
ReadPreference |
getReadPreference()
Deprecated.
The read preference that all connection sources returned by this instance will satisfy.
|
SessionContext |
getSessionContext()
Deprecated.
Gets the session context for this binding.
|
void |
release()
Deprecated.
Release a reference to this object.
|
AsyncReadBinding |
retain()
Deprecated.
Retain an additional reference to this object.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCountpublic AsyncSingleConnectionReadBinding(ReadPreference readPreference, ServerDescription serverDescription, AsyncConnection connection)
readPreference - the read preferenced of this bindingserverDescription - the description of the serverconnection - the connection to bind to.public ReadPreference getReadPreference()
AsyncReadBindinggetReadPreference in interface AsyncReadBindingpublic SessionContext getSessionContext()
AsyncReadBindinggetSessionContext in interface AsyncReadBindingpublic void getReadConnectionSource(SingleResultCallback<AsyncConnectionSource> callback)
AsyncReadBindinggetReadConnectionSource in interface AsyncReadBindingcallback - the to be passed the connection sourcepublic AsyncReadBinding retain()
ReferenceCountedretain in interface AsyncReadBindingretain in interface ReferenceCountedretain in class com.mongodb.internal.binding.AbstractReferenceCountedpublic void release()
ReferenceCountedrelease in interface ReferenceCountedrelease in class com.mongodb.internal.binding.AbstractReferenceCountedCopyright © 2010 - 2023 Adobe. All Rights Reserved