static class OperationHelper.ConnectionReleasingWrappedCallback<T> extends java.lang.Object implements SingleResultCallback<T>
| Modifier and Type | Field and Description |
|---|---|
private AsyncConnection |
connection |
private AsyncConnectionSource |
source |
private SingleResultCallback<T> |
wrapped |
| Constructor and Description |
|---|
ConnectionReleasingWrappedCallback(SingleResultCallback<T> wrapped,
AsyncConnectionSource source,
AsyncConnection connection) |
| Modifier and Type | Method and Description |
|---|---|
void |
onResult(T result,
java.lang.Throwable t)
Called when the operation completes.
|
SingleResultCallback<T> |
releaseConnectionAndGetWrapped() |
private final SingleResultCallback<T> wrapped
private final AsyncConnectionSource source
private final AsyncConnection connection
ConnectionReleasingWrappedCallback(SingleResultCallback<T> wrapped, AsyncConnectionSource source, AsyncConnection connection)
public void onResult(T result, java.lang.Throwable t)
SingleResultCallbackonResult in interface SingleResultCallback<T>result - the result, which may be null. Always null if e is not null.t - the throwable, or null if the operation completed normallypublic SingleResultCallback<T> releaseConnectionAndGetWrapped()