Insert the specified element into this queue if it is possible to do so immediately without violating capacity restrictions, returning true upon success and false if no space is currently available.
Insert the specified element into this queue if it is possible to do so immediately without violating capacity restrictions, returning true upon success and false if no space is currently available.
the element to add
true if the element was added to this queue, else false
Insert the specified element into this queue, waiting up to the specified wait time if necessary for space to become available.
Insert the specified element into this queue, waiting up to the specified wait time if necessary for space to become available.
the element to add
how long to wait before giving up, in units of unit
true if successful, or false if the specified waiting time elapses before space is available
This trait captures the "tail side" of the
BlockingQueue
interface