private static class FindOperation.ExplainResultCallback extends java.lang.Object implements SingleResultCallback<AsyncBatchCursor<BsonDocument>>
Modifier and Type | Field and Description |
---|---|
private SingleResultCallback<BsonDocument> |
callback |
Constructor and Description |
---|
ExplainResultCallback(SingleResultCallback<BsonDocument> callback) |
Modifier and Type | Method and Description |
---|---|
void |
onResult(AsyncBatchCursor<BsonDocument> cursor,
java.lang.Throwable t)
Called when the operation completes.
|
private final SingleResultCallback<BsonDocument> callback
public ExplainResultCallback(SingleResultCallback<BsonDocument> callback)
public void onResult(AsyncBatchCursor<BsonDocument> cursor, java.lang.Throwable t)
SingleResultCallback
onResult
in interface SingleResultCallback<AsyncBatchCursor<BsonDocument>>
cursor
- the result, which may be null. Always null if e is not null.t
- the throwable, or null if the operation completed normally