private class ClientSessionBinding.SessionBindingAsyncConnectionSource extends java.lang.Object implements AsyncConnectionSource
Modifier and Type | Field and Description |
---|---|
private AsyncConnectionSource |
wrapped |
Constructor and Description |
---|
SessionBindingAsyncConnectionSource(AsyncConnectionSource wrapped) |
Modifier and Type | Method and Description |
---|---|
void |
getConnection(SingleResultCallback<AsyncConnection> callback)
Gets a connection from this source.
|
int |
getCount()
Gets the current reference count, which starts at 0.
|
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.
|
private AsyncConnectionSource wrapped
SessionBindingAsyncConnectionSource(AsyncConnectionSource wrapped)
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
public int getCount()
ReferenceCounted
getCount
in interface ReferenceCounted
public void release()
ReferenceCounted
release
in interface ReferenceCounted