static private void checkHeadOfDeadlineQueue(final long nowNanos,final PriorityBlockingQueue<QueryDeadline> deadlineQueue){
  QueryDeadline x;
  while ((x=deadlineQueue.poll()) != null) {
    if (x.checkDeadline(nowNanos) == null) {
      continue;
    }
    if (x.deadlineNanos > nowNanos) {
      deadlineQueue.add(x);
      break;
    }
  }
}

static private void checkHeadOfDeadlineQueue ( final long nowNanos , final PriorityBlockingQueue < QueryDeadline > deadlineQueue ) { QueryDeadline x ; while ( ( x = deadlineQueue . poll ( ) ) != null ) { if ( x . checkDeadline ( nowNanos ) == null ) { continue ; } if ( x . deadlineNanos > nowNanos ) { deadlineQueue . add ( x ) ; break ; } } }
check the head of the deadline queue for any queries whose deadline has expired .
