Question about AsynchronousByteChannel.read()
cowwoc
cowwoc at bbs.darktech.org
Mon Jul 11 06:42:30 PDT 2011
Hi,
According to the Javadoc of read(ByteBuffer, A,
CompletionHandler<Integer,? super A>):
"This method may be invoked at any time. Some channel types may not allow
more than one read to be outstanding at any given time. If a thread
initiates a read operation before a previous read operation has completed
then a ReadPendingException will be thrown."
On the one hand you're indicating that that some channels support *do*
multiple read requests. On the other hand you're saying if multiple requests
are issued, ReadPendingException will be thrown.
Did you mean to imply that ReadPendingException will only be thrown if the
channel implementation does *not* support multiple reads but in other
channel implementations it might work just fine?
Thanks,
Gili
--
View this message in context: http://nio-dev.3157472.n2.nabble.com/Question-about-AsynchronousByteChannel-read-tp6570959p6570959.html
Sent from the nio-dev mailing list archive at Nabble.com.
More information about the nio-dev
mailing list