public boolean isReady(SelectionKey key) { AsyncQueueEntry channelEntry = readQueue.getAsyncQueueEntry(key.channel()); return channelEntry != null && (channelEntry.currentElement.get() != null || (channelEntry.queue != null && !channelEntry.queue.isEmpty())); }
public AsyncQueueEntry getAsyncQueue(SelectionKey key) { return readQueue.getAsyncQueueEntry(key.channel()); }