public boolean offer(E e){
  final ReentrantLock lock=this.lock;
  lock.lock();
  try {
    q.offer(e);
    if (q.peek() == e) {
      leader=null;
      available.signal();
    }
    return true;
  }
  finally {
    lock.unlock();
  }
}

public boolean offer ( E e ) { final ReentrantLock lock = this . lock ; lock . lock ( ) ; try { q . offer ( e ) ; if ( q . peek ( ) == e ) { leader = null ; available . signal ( ) ; } return true ; } finally { lock . unlock ( ) ; } }
inserts the specified element into this delay queue .
