[JAVA-3141] Add NIO Channel utilities to asynchronous GridFS Created: 17/Jan/19  Updated: 17/Jan/19  Resolved: 17/Jan/19

Status: Closed
Project: Java Driver
Component/s: Async, GridFS
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Major - P3
Reporter: Mark Paluch Assignee: Ross Lawley
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Asynchronous GridFS requires AsyncInputStream and AsyncOutputStream as I/O API. It would make sense to provide utilities to bridge these to NIO Channel types as these are more common and async (non-blocking) ready.

A utility modeled along the lines of ReadableByteChannel could improve the integration with existing Java APIs.



 Comments   
Comment by Ross Lawley [ 17/Jan/19 ]

Excellent, closing.

Comment by Mark Paluch [ 17/Jan/19 ]

Thanks for the prompt response. Yes, I think we can close this ticket as AsynchronousChannelHelper is exactly what I was looking for.

Comment by Ross Lawley [ 17/Jan/19 ]

Hi mp911de,

Does the com.mongodb.async.client.gridfs.helpers.AsynchronousChannelHelper meet your needs?

Ross

Generated at Thu Feb 08 08:58:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.