request for review: 7184932: Remove the temporary Selector usage in the NIO socket adapters
Alan Bateman
Alan.Bateman at oracle.com
Tue Aug 28 08:23:23 PDT 2012
On 28/08/2012 16:14, David M. Lloyd wrote:
>
> What about generalizing that API a bit, and rolling it up to
> SelectableChannel with methods like:
>
> public abstract void await(int ops);
> public abstract void await(int ops, long time, TimeUnit unit);
>
> ...where ops must conform to validOps().
>
> This way it becomes trivial for anyone to mix blocking and
> non-blocking APIs which is definitely a common API usage.
>
I've chatted with Rob about a potential step along these lines. First
step though is to eliminate the temporary Selector usage in the adapters.
-Alan
More information about the nio-dev
mailing list