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.
|
SessionContext |
getSessionContext()
Gets the session context for this source
|
void |
release()
Release a reference to this object.
|
AsyncConnectionSource |
retain()
Retain an additional reference to this object.
|
getCount
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCount
public ServerDescription getServerDescription()
AsyncConnectionSource
getServerDescription
in interface AsyncConnectionSource
public SessionContext getSessionContext()
AsyncConnectionSource
getSessionContext
in interface AsyncConnectionSource
public void getConnection(SingleResultCallback<AsyncConnection> callback)
AsyncConnectionSource
getConnection
in interface AsyncConnectionSource
callback
- the to be passed the connectionpublic AsyncConnectionSource retain()
ReferenceCounted
retain
in interface AsyncConnectionSource
retain
in interface ReferenceCounted
retain
in class AbstractReferenceCounted
public void release()
ReferenceCounted
release
in interface ReferenceCounted
release
in class AbstractReferenceCounted