AbstractDeque.offer

Links the provided element as the last in the queue, waiting up to the specified time to do so if the queue is full. <p> This method is equivalent to {@link #offerLast(Object, long, TimeUnit)}

@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 offer(E e)
  2. bool offer(E e, Duration timeout)
    class AbstractDeque(E)
    bool
    offer
    (
    E e
    ,
    Duration timeout
    )

Meta