static private void checkDeadlines(final long nowNanos,final PriorityBlockingQueue<QueryDeadline> deadlineQueue){
synchronized (deadlineQueue) {
    checkHeadOfDeadlineQueue(nowNanos,deadlineQueue);
    if (deadlineQueue.size() > DEADLINE_QUEUE_SCAN_SIZE) {
      scanDeadlineQueue(nowNanos,deadlineQueue);
    }
  }
}

static private void checkDeadlines ( final long nowNanos , final PriorityBlockingQueue < QueryDeadline > deadlineQueue ) { synchronized ( deadlineQueue ) { checkHeadOfDeadlineQueue ( nowNanos , deadlineQueue ) ; if ( deadlineQueue . size ( ) > DEADLINE_QUEUE_SCAN_SIZE ) { scanDeadlineQueue ( nowNanos , deadlineQueue ) ; } } }
scan the priority queue of queries with a specified deadline , halting any queries whose deadline has expired .
