Ejemplo n.º 1
0
  public boolean isReady(SelectionKey key) {
    AsyncQueueEntry channelEntry = readQueue.getAsyncQueueEntry(key.channel());

    return channelEntry != null
        && (channelEntry.currentElement.get() != null
            || (channelEntry.queue != null && !channelEntry.queue.isEmpty()));
  }
Ejemplo n.º 2
0
 public AsyncQueueEntry getAsyncQueue(SelectionKey key) {
   return readQueue.getAsyncQueueEntry(key.channel());
 }