LinkedBlockingQueue.offer

Inserts the specified element at the tail of this queue, waiting if necessary up to the specified wait time for space to become available.

@return {@code true} if successful, or {@code false} if the specified waiting time elapses before space is available @throws InterruptedException {@inheritDoc} @throws NullPointerException {@inheritDoc}

  1. bool offer(E e, Duration timeout)
    class LinkedBlockingQueue(E)
    bool
    offer
    (
    E e
    ,
    Duration timeout
    )
  2. bool offer(E e)

Meta