Simplify Operations by uniting Sync and Async operations by rozza · Pull Request #1776 · mongodb/mongo-java-driver

@rozza

…e interface.

Merged Async Read / Write Operations into their sync operations counterparts.

* AsyncWriteOperation into WriteOperation is a simple merge
* AsyncReadOperation into ReadOperation requires an additional type parameter
  This is due to async and sync cursors have different types.

Added extra ReadOperations interfaces to represent:
  * Read operations that return the same type for sync / async
  * Read operations that represent cursors

Removed SyncOperations and AsyncOperations builders which both use the same Operations builder class.

JAVA-4900

@rozza rozza marked this pull request as ready for review

July 24, 2025 15:04

jyemin

@rozza

@rozza

nhachicha