boolean
add(E e)
Inserts the specified element at the tail of this queue.
boolean
contains(Object o)
Returns true
if this queue contains the specified element.
int
drainTo(Collection<? super E> c)
Removes all available elements from this queue and adds them to the given collection.
int
drainTo(Collection<? super E> c, int maxElements)
Removes at most the given number of available elements from this queue and adds them to the given collection.
int
getWaitingConsumerCount()
boolean
hasWaitingConsumer()
boolean
isEmpty()
Returns true
if this queue contains no elements.
Iterator<E>
iterator()
Returns an iterator over the elements in this queue in proper sequence.
boolean
offer(E e)
Inserts the specified element at the tail of this queue.
boolean
offer(E e, long timeout, TimeUnit unit)
Inserts the specified element at the tail of this queue.
E
peek()
Retrieves, but does not remove, the head of this queue, or returns null if this queue is empty.
E
poll()
Retrieves and removes the head of this queue, or returns null if this queue is empty.
E
poll(long timeout, TimeUnit unit)
Retrieves and removes the head of this queue, waiting up to the specified wait time if necessary for an element to become available.
void
put(E e)
Inserts the specified element at the tail of this queue.
int
remainingCapacity()
Always returns Integer.MAX_VALUE
because a LinkedTransferQueue
is not capacity constrained.
boolean
remove(Object o)
Removes a single instance of the specified element from this queue, if it is present.
int
size()
Returns the number of elements in this queue.
E
take()
Retrieves and removes the head of this queue, waiting if necessary until an element becomes available.
void
transfer(E e)
Transfers the element to a consumer, waiting if necessary to do so.
boolean
tryTransfer(E e)
Transfers the element to a waiting consumer immediately, if possible.
boolean
tryTransfer(E e, long timeout, TimeUnit unit)
Transfers the element to a consumer if it is possible to do so before the timeout elapses.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4