static class CommandOperationHelper.TransformingResultCallback<T,R> extends java.lang.Object implements SingleResultCallback<T>
Modifier and Type | Field and Description |
---|---|
private SingleResultCallback<R> |
callback |
private ServerAddress |
serverAddress |
private CommandOperationHelper.CommandTransformer<T,R> |
transformer |
Constructor and Description |
---|
TransformingResultCallback(CommandOperationHelper.CommandTransformer<T,R> transformer,
ServerAddress serverAddress,
SingleResultCallback<R> callback) |
Modifier and Type | Method and Description |
---|---|
void |
onResult(T result,
java.lang.Throwable t)
Called when the operation completes.
|
private final CommandOperationHelper.CommandTransformer<T,R> transformer
private final SingleResultCallback<R> callback
private final ServerAddress serverAddress
TransformingResultCallback(CommandOperationHelper.CommandTransformer<T,R> transformer, ServerAddress serverAddress, SingleResultCallback<R> callback)
public void onResult(T result, java.lang.Throwable t)
SingleResultCallback
onResult
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 normally