public final class DelegatingBlockingQueue<E> extends Object implements BlockingQueue<E>
| Constructor and Description |
|---|
DelegatingBlockingQueue(org.graalvm.compiler.truffle.runtime.collection.SerialQueue<E> delegate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E x) |
boolean |
addAll(Collection<? extends E> collection) |
int |
addIndexOf(E x) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> collection) |
int |
drainTo(Collection<? super E> collection) |
int |
drainTo(Collection<? super E> collection,
int i) |
E |
element() |
int |
indexOf(E x) |
int |
internalCapacity() |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
boolean |
offer(E x) |
boolean |
offer(E x,
long l,
TimeUnit unit) |
E |
peek() |
E |
poll() |
E |
poll(long timeout,
TimeUnit unit) |
void |
put(E x) |
int |
remainingCapacity() |
E |
remove() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> collection) |
boolean |
retainAll(Collection<?> collection) |
int |
size() |
E |
take() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCode, parallelStream, removeIf, spliterator, stream, toArraypublic DelegatingBlockingQueue(org.graalvm.compiler.truffle.runtime.collection.SerialQueue<E> delegate)
public boolean add(E x)
add in interface Collection<E>add in interface BlockingQueue<E>add in interface Queue<E>public int addIndexOf(E x)
public int indexOf(E x)
public boolean offer(E x)
public void put(E x) throws InterruptedException
put in interface BlockingQueue<E>InterruptedExceptionpublic boolean offer(E x, long l, TimeUnit unit) throws InterruptedException
offer in interface BlockingQueue<E>InterruptedExceptionpublic E poll(long timeout, TimeUnit unit) throws InterruptedException
poll in interface BlockingQueue<E>InterruptedExceptionpublic boolean remove(Object o)
remove in interface Collection<E>remove in interface BlockingQueue<E>public E take() throws InterruptedException
take in interface BlockingQueue<E>InterruptedExceptionpublic int remainingCapacity()
remainingCapacity in interface BlockingQueue<E>public boolean containsAll(Collection<?> collection)
containsAll in interface Collection<E>public boolean addAll(Collection<? extends E> collection)
addAll in interface Collection<E>public boolean removeAll(Collection<?> collection)
removeAll in interface Collection<E>public boolean retainAll(Collection<?> collection)
retainAll in interface Collection<E>public void clear()
clear in interface Collection<E>public int size()
size in interface Collection<E>public boolean isEmpty()
isEmpty in interface Collection<E>public boolean contains(Object o)
contains in interface Collection<E>contains in interface BlockingQueue<E>public Object[] toArray()
toArray in interface Collection<E>public <T> T[] toArray(T[] a)
toArray in interface Collection<E>public int drainTo(Collection<? super E> collection)
drainTo in interface BlockingQueue<E>public int drainTo(Collection<? super E> collection, int i)
drainTo in interface BlockingQueue<E>public int internalCapacity()