ReferenceCountedAsyncReadWriteBindingAsyncClusterBinding, AsyncSingleConnectionReadBindingpublic interface AsyncReadBinding extends ReferenceCounted
| Modifier and Type | Method | 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.
|
SessionContext |
getSessionContext() |
Gets the session context for this binding.
|
AsyncReadBinding |
retain() |
Retain an additional reference to this object.
|
getCount, releaseReadPreference getReadPreference()
SessionContext getSessionContext()
void getReadConnectionSource(SingleResultCallback<AsyncConnectionSource> callback)
callback - the to be passed the connection sourceAsyncReadBinding retain()
ReferenceCountedretain in interface ReferenceCounted