171172173174175176177178179180181
private void startupWorker() { if (!selectable) { connectQueue.clear(); cancelQueue.clear(); throw new ClosedSelectorException(); } synchronized (lock) { if (worker == null) { worker = new Worker(); executor.execute(new NamePreservingRunnable(worker, threadName));
274275276277278279280281282283284
private void startupWorker() { if (!selectable) { registerQueue.clear(); cancelQueue.clear(); flushingSessions.clear(); throw new ClosedSelectorException(); } synchronized (this) { if (worker == null) { worker = new Worker(); executor.execute(
181182183184185186187188189190191
*/ private void startupWorker() { if (!selectable) { registerQueue.clear(); cancelQueue.clear(); throw new ClosedSelectorException(); } synchronized (lock) { if (worker == null) { worker = new Worker();
116117118119120121122123124
* @return the cancelled keys set */ protected final Set<SelectionKey> cancelledKeys() { if (! isOpen()) throw new ClosedSelectorException(); return cancelledKeys; }
186187188189190191192193194195196
*/ protected int doEpollEnter(final long millisTimeout) throws IOException { if (!isOpen()) { log.error("slector is closed"); throw new ClosedSelectorException(); } try { selectLock.lock(); return doEpollExclusive(millisTimeout);
374375376377378379380381382
@SuppressWarnings("unchecked") @Override public Set<SelectionKey> keys() { if (!isOpen()) { throw new ClosedSelectorException(); } return (Set<SelectionKey>) registeredKeySet; }
436437438439440441442443444
@SuppressWarnings("unchecked") @Override public Set<SelectionKey> selectedKeys() { if (!isOpen()) { throw new ClosedSelectorException(); } return (Set<SelectionKey>) selectedKeySet; }
392393394395396397398399400
460461462463464465466467468