public interface AsyncReadBinding extends ReferenceCounted
Modifier and Type | Method and Description |
---|---|
void |
getReadConnectionSource(SingleResultCallback<AsyncConnectionSource> callback)
Returns a connection source to a server that satisfies the specified read preference.
|
ReadPreference |
getReadPreference()
The read preference that all connection sources returned by this instance will satisfy.
|
AsyncReadBinding |
retain()
Retain an additional reference to this object.
|
getCount, release
ReadPreference getReadPreference()
void getReadConnectionSource(SingleResultCallback<AsyncConnectionSource> callback)
callback
- the to be passed the connection sourceAsyncReadBinding retain()
ReferenceCounted
retain
in interface ReferenceCounted