AsynchronousByteChannel and scatter/gather

David M. Lloyd david.lloyd at redhat.com
Fri Jun 6 08:16:23 PDT 2008


On 06/06/2008 04:09 AM, Alan Bateman wrote:
> [ moving to nio-discuss (if okay with you) as there are folks interested 
> in this area that don't subscribe to the -dev mailing list ]
> 
> David M. Lloyd wrote:
>> I've noticed that AsynchronousByteChannel doesn't support 
>> scatter/gather operations; yet the most of the channels that implement 
>> this interface have scatter/gather operations.  Is there any plan to 
>> provide a scatter/gather-capable version of the interface?  Or merge 
>> those methods onto the base interface?
> Only AsynchronousSocketChannel defines scatter/gather operations at this 
> time. A possible candidate to also define these operations in the future 
> is AsynchronousDatagramChannel but there hasn't been sufficient 
> motivation to date. We could add asynchronous variants of the 
> scatter/gather interfaces later if they are needed.

OK.  Mostly what I'm driving at is an API issue - why have an interface 
then for single-buffer asynchronous operations, but not multi-buffer 
operations?  Does the interface add any value to the API?

- DML



More information about the nio-discuss mailing list