private static class CommandOperationHelper.CommandProtocolExecutingCallback<D,R> extends java.lang.Object implements SingleResultCallback<AsyncConnectionSource>
Modifier and Type | Field and Description |
---|---|
private SingleResultCallback<R> |
callback |
private BsonDocument |
command |
private java.lang.String |
database |
private Decoder<D> |
decoder |
private FieldNameValidator |
fieldNameValidator |
private ReadPreference |
readPreference |
private CommandOperationHelper.CommandTransformer<D,R> |
transformer |
Constructor and Description |
---|
CommandProtocolExecutingCallback(java.lang.String database,
BsonDocument command,
FieldNameValidator fieldNameValidator,
Decoder<D> decoder,
ReadPreference readPreference,
CommandOperationHelper.CommandTransformer<D,R> transformer,
SingleResultCallback<R> callback) |
Modifier and Type | Method and Description |
---|---|
void |
onResult(AsyncConnectionSource source,
java.lang.Throwable t)
Called when the operation completes.
|
private final java.lang.String database
private final BsonDocument command
private final ReadPreference readPreference
private final FieldNameValidator fieldNameValidator
private final CommandOperationHelper.CommandTransformer<D,R> transformer
private final SingleResultCallback<R> callback
public CommandProtocolExecutingCallback(java.lang.String database, BsonDocument command, FieldNameValidator fieldNameValidator, Decoder<D> decoder, ReadPreference readPreference, CommandOperationHelper.CommandTransformer<D,R> transformer, SingleResultCallback<R> callback)
public void onResult(AsyncConnectionSource source, java.lang.Throwable t)
SingleResultCallback
onResult
in interface SingleResultCallback<AsyncConnectionSource>
source
- the result, which may be null. Always null if e is not null.t
- the throwable, or null if the operation completed normally