private class AsyncSingleConnectionReadBinding.AsyncSingleConnectionSource extends AbstractReferenceCounted implements AsyncConnectionSource
| Constructor and Description |
|---|
AsyncSingleConnectionSource() |
| Modifier and Type | Method and Description |
|---|---|
void |
getConnection(SingleResultCallback<AsyncConnection> callback)
Gets a connection from this source.
|
ServerDescription |
getServerDescription()
Gets the current description of this source.
|
void |
release()
Release a reference to this object.
|
AsyncConnectionSource |
retain()
Retain an additional reference to this object.
|
getCountclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCountpublic ServerDescription getServerDescription()
AsyncConnectionSourcegetServerDescription in interface AsyncConnectionSourcepublic void getConnection(SingleResultCallback<AsyncConnection> callback)
AsyncConnectionSourcegetConnection in interface AsyncConnectionSourcecallback - the to be passed the connectionpublic AsyncConnectionSource retain()
ReferenceCountedretain in interface AsyncConnectionSourceretain in interface ReferenceCountedretain in class AbstractReferenceCountedpublic void release()
ReferenceCountedrelease in interface ReferenceCountedrelease in class AbstractReferenceCounted