Package com.mongodb.binding
Class AsyncSingleConnectionReadBinding
- java.lang.Object
 - 
- com.mongodb.internal.binding.AbstractReferenceCounted
 - 
- com.mongodb.binding.AsyncSingleConnectionReadBinding
 
 
 
- 
- All Implemented Interfaces:
 AsyncReadBinding,ReferenceCounted
@Deprecated public class AsyncSingleConnectionReadBinding extends com.mongodb.internal.binding.AbstractReferenceCounted implements AsyncReadBinding
Deprecated.An asynchronous read binding that is bound to a single connection.- Since:
 - 3.2
 
 
- 
- 
Constructor Summary
Constructors Constructor Description AsyncSingleConnectionReadBinding(ReadPreference readPreference, ServerDescription serverDescription, AsyncConnection connection)Deprecated.Construct an instance. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidgetReadConnectionSource(SingleResultCallback<AsyncConnectionSource> callback)Deprecated.Returns a connection source to a server that satisfies the specified read preference.ReadPreferencegetReadPreference()Deprecated.The read preference that all connection sources returned by this instance will satisfy.SessionContextgetSessionContext()Deprecated.Gets the session context for this binding.voidrelease()Deprecated.Release a reference to this object.AsyncReadBindingretain()Deprecated.Retain an additional reference to this object.- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface com.mongodb.binding.ReferenceCounted
getCount 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
AsyncSingleConnectionReadBinding
public AsyncSingleConnectionReadBinding(ReadPreference readPreference, ServerDescription serverDescription, AsyncConnection connection)
Deprecated.Construct an instance.- Parameters:
 readPreference- the read preferenced of this bindingserverDescription- the description of the serverconnection- the connection to bind to.
 
 - 
 
- 
Method Detail
- 
getReadPreference
public ReadPreference getReadPreference()
Deprecated.Description copied from interface:AsyncReadBindingThe read preference that all connection sources returned by this instance will satisfy.- Specified by:
 getReadPreferencein interfaceAsyncReadBinding- Returns:
 - the non-null read preference
 
 
- 
getSessionContext
public SessionContext getSessionContext()
Deprecated.Description copied from interface:AsyncReadBindingGets the session context for this binding.- Specified by:
 getSessionContextin interfaceAsyncReadBinding- Returns:
 - the session context, which may not be null
 
 
- 
getReadConnectionSource
public void getReadConnectionSource(SingleResultCallback<AsyncConnectionSource> callback)
Deprecated.Description copied from interface:AsyncReadBindingReturns a connection source to a server that satisfies the specified read preference.- Specified by:
 getReadConnectionSourcein interfaceAsyncReadBinding- Parameters:
 callback- the to be passed the connection source
 
- 
retain
public AsyncReadBinding 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 interfaceReferenceCounted- Overrides:
 retainin classcom.mongodb.internal.binding.AbstractReferenceCounted- Returns:
 - this
 
 
- 
release
public void release()
Deprecated.Description copied from interface:ReferenceCountedRelease a reference to this object.- Specified by:
 releasein interfaceReferenceCounted- Overrides:
 releasein classcom.mongodb.internal.binding.AbstractReferenceCounted
 
 - 
 
 -