public static class AdaptersModule.QueueToBlockingQueueWrapper
extends java.lang.Object
implements java.util.concurrent.BlockingQueue
Constructor and Description |
---|
QueueToBlockingQueueWrapper() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(java.lang.Object e) |
boolean |
addAll(java.util.Collection c) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection c) |
int |
drainTo(java.util.Collection c) |
int |
drainTo(java.util.Collection c,
int maxElements) |
java.lang.Object |
element() |
boolean |
equals(java.lang.Object obj) |
void |
forEach(java.util.function.Consumer action) |
int |
hashCode() |
boolean |
isEmpty() |
java.util.Iterator |
iterator() |
boolean |
offer(java.lang.Object e) |
boolean |
offer(java.lang.Object e,
long timeout,
java.util.concurrent.TimeUnit unit) |
java.util.stream.Stream |
parallelStream() |
java.lang.Object |
peek() |
java.lang.Object |
poll() |
java.lang.Object |
poll(long timeout,
java.util.concurrent.TimeUnit unit) |
void |
put(java.lang.Object e) |
int |
remainingCapacity() |
java.lang.Object |
remove() |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection c) |
boolean |
removeIf(java.util.function.Predicate filter) |
boolean |
retainAll(java.util.Collection c) |
int |
size() |
java.util.Spliterator |
spliterator() |
java.util.stream.Stream |
stream() |
java.lang.Object |
take() |
java.lang.Object[] |
toArray() |
java.lang.Object[] |
toArray(java.lang.Object[] a) |
java.lang.String |
toString() |
public void forEach(java.util.function.Consumer action)
forEach
in interface java.lang.Iterable
public int hashCode()
hashCode
in interface java.util.Collection
hashCode
in class java.lang.Object
public java.lang.Object remove()
remove
in interface java.util.Queue
public boolean equals(java.lang.Object obj)
equals
in interface java.util.Collection
equals
in class java.lang.Object
public java.lang.Object element()
element
in interface java.util.Queue
public void clear()
clear
in interface java.util.Collection
public boolean containsAll(java.util.Collection c)
containsAll
in interface java.util.Collection
public boolean add(java.lang.Object e)
add
in interface java.util.Collection
add
in interface java.util.concurrent.BlockingQueue
add
in interface java.util.Queue
public boolean removeAll(java.util.Collection c)
removeAll
in interface java.util.Collection
public boolean offer(java.lang.Object e)
offer
in interface java.util.concurrent.BlockingQueue
offer
in interface java.util.Queue
public boolean retainAll(java.util.Collection c)
retainAll
in interface java.util.Collection
public java.lang.Object poll()
poll
in interface java.util.Queue
public java.lang.Object peek()
peek
in interface java.util.Queue
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isEmpty()
isEmpty
in interface java.util.Collection
public int size()
size
in interface java.util.Collection
public boolean contains(java.lang.Object o)
contains
in interface java.util.Collection
contains
in interface java.util.concurrent.BlockingQueue
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection
remove
in interface java.util.concurrent.BlockingQueue
public boolean removeIf(java.util.function.Predicate filter)
removeIf
in interface java.util.Collection
public boolean addAll(java.util.Collection c)
addAll
in interface java.util.Collection
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection
public java.lang.Object[] toArray(java.lang.Object[] a)
toArray
in interface java.util.Collection
public java.util.Iterator iterator()
iterator
in interface java.lang.Iterable
iterator
in interface java.util.Collection
public java.util.stream.Stream stream()
stream
in interface java.util.Collection
public java.util.stream.Stream parallelStream()
parallelStream
in interface java.util.Collection
public java.util.Spliterator spliterator()
spliterator
in interface java.lang.Iterable
spliterator
in interface java.util.Collection
public void put(java.lang.Object e) throws java.lang.InterruptedException
put
in interface java.util.concurrent.BlockingQueue
java.lang.InterruptedException
public boolean offer(java.lang.Object e, long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
offer
in interface java.util.concurrent.BlockingQueue
java.lang.InterruptedException
public java.lang.Object take() throws java.lang.InterruptedException
take
in interface java.util.concurrent.BlockingQueue
java.lang.InterruptedException
public java.lang.Object poll(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
poll
in interface java.util.concurrent.BlockingQueue
java.lang.InterruptedException
public int remainingCapacity()
remainingCapacity
in interface java.util.concurrent.BlockingQueue
public int drainTo(java.util.Collection c)
drainTo
in interface java.util.concurrent.BlockingQueue
public int drainTo(java.util.Collection c, int maxElements)
drainTo
in interface java.util.concurrent.BlockingQueue