Skip to content

Commit fa700ae

Browse files
author
Almas Abdrazak
committed
update the docs
1 parent 2f1a517 commit fa700ae

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

driver-core/src/main/com/mongodb/internal/operation/AsyncWriteThenReadOperationCursor.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,22 @@
3333
public interface AsyncWriteThenReadOperationCursor<T> {
3434

3535
/**
36-
* @return the command name of the operation, e.g. "insert", "update", "delete", "bulkWrite", etc.
36+
* @return the command name of the write phase of this operation (e.g. "mapReduce", "aggregate")
3737
*/
3838
String getCommandName();
3939

4040
/**
41-
* @return the namespace of the operation
41+
* @return the namespace the write phase targets
4242
*/
4343
MongoNamespace getNamespace();
4444

4545
/**
46-
* General execute which can return anything of type T
46+
* Executes the write phase followed by the read phase, yielding an {@link AsyncBatchCursor}
47+
* over the results of the read.
4748
*
48-
* @param binding the binding to execute in the context of
49+
* @param binding the read-write binding used by both phases
4950
* @param operationContext the operation context to use
50-
* @param callback the callback to be called when the operation has been executed
51+
* @param callback receives the {@link AsyncBatchCursor} on success, or the failure of either phase
5152
*/
5253
void executeAsync(AsyncReadWriteBinding binding, OperationContext operationContext,
5354
SingleResultCallback<AsyncBatchCursor<T>> callback);

0 commit comments

Comments
 (0)