public void clear(){
  final ReentrantLock lock=this.lock;
  lock.lock();
  try {
    q.clear();
  }
  finally {
    lock.unlock();
  }
}

public void clear ( ) { final ReentrantLock lock = this . lock ; lock . lock ( ) ; try { q . clear ( ) ; } finally { lock . unlock ( ) ; } }
atomically removes all of the elements from this delay queue . the queue will be empty after this call returns . elements with an unexpired delay are not waited for ; they are simply discarded from the queue .
