AsynchronousFileChannel.open() - is it blocking?
Vitaly Davidovich
vitalyd at gmail.com
Thu Mar 1 15:02:21 PST 2012
It's probably safe to assume that any method that doesn't return a Future
or accepts a CompletionHandler runs synchronously.
On Thu, Mar 1, 2012 at 5:52 PM, Zhong Yu <zhong.j.yu at gmail.com> wrote:
> Is open() a potentially blocking action? Apparently so because some
> sanity checking (e.g. existence of the file) requires disk spin. If
> that's the case, it should probably be explicitly documented.
>
> And after open(), are following methods blocking or non-blocking?
>
> size();
> truncate();
>
> Thanks,
> Zhong Yu
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20120301/66cf6093/attachment.html
More information about the nio-dev
mailing list