/*synchronized*/ int getInterestOps() { ServerSocketChannel c = channel.get(); if (c == null || !c.isOpen() || !c.isRegistered()) return 0; int ops = 0; if (acceptableListener!=null && !acceptableHndPending) ops |= SelectionKey.OP_ACCEPT; return ops; }