public Set<SelectionKey> selectedKeys() { return delegate.selectedKeys(); } public int selectNow() throws IOException { return delegate.selectNow(); }
public Keys select() { try { int count = selector.select(); Set<SelectionKey> selectedKeys = selector.selectedKeys(); return new Keys(count, selectedKeys); } catch (IOException e) { throw new NioException(e); } }