LinkedBlockingDeque.offerFirst

Links the provided element as the first in the queue, waiting up to the specified time to do so if the queue is full.

@param e element to link @param timeout length of time to wait @param unit units that timeout is expressed in

@return {@code true} if successful, otherwise {@code false}

@throws NullPointerException if e is null @throws InterruptedException if the thread is interrupted whilst waiting for space

  1. bool offerFirst(E e)
  2. bool offerFirst(E e, Duration timeout)
    class LinkedBlockingDeque(E)
    bool
    offerFirst
    (
    E e
    ,
    Duration timeout
    )

Meta