public class SingletonEvictingBlockingQueue<V> extends Object implements BlockingQueue<V>
Constructor and Description |
---|
SingletonEvictingBlockingQueue() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(V v) |
boolean |
addAll(Collection<? extends V> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
int |
drainTo(Collection<? super V> c) |
int |
drainTo(Collection<? super V> c,
int maxElements) |
V |
element() |
boolean |
isEmpty() |
Iterator<V> |
iterator() |
boolean |
offer(V v) |
boolean |
offer(V v,
long timeout,
TimeUnit unit) |
V |
peek() |
V |
poll() |
V |
poll(long timeout,
TimeUnit unit) |
void |
put(V v) |
int |
remainingCapacity() |
V |
remove() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
V |
take() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, hashCode, parallelStream, removeIf, spliterator, stream
public boolean add(V v)
add
in interface Collection<V>
add
in interface BlockingQueue<V>
add
in interface Queue<V>
public boolean addAll(Collection<? extends V> c)
addAll
in interface Collection<V>
public boolean offer(V v)
public boolean offer(V v, long timeout, TimeUnit unit) throws InterruptedException
offer
in interface BlockingQueue<V>
InterruptedException
public void put(V v) throws InterruptedException
put
in interface BlockingQueue<V>
InterruptedException
public V poll(long timeout, TimeUnit unit) throws InterruptedException
poll
in interface BlockingQueue<V>
InterruptedException
public V take() throws InterruptedException
take
in interface BlockingQueue<V>
InterruptedException
public void clear()
clear
in interface Collection<V>
public int size()
size
in interface Collection<V>
public boolean isEmpty()
isEmpty
in interface Collection<V>
public Object[] toArray()
toArray
in interface Collection<V>
public <T> T[] toArray(T[] a)
toArray
in interface Collection<V>
public boolean contains(Object o)
contains
in interface Collection<V>
contains
in interface BlockingQueue<V>
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<V>
public boolean remove(Object o)
remove
in interface Collection<V>
remove
in interface BlockingQueue<V>
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<V>
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<V>
public int remainingCapacity()
remainingCapacity
in interface BlockingQueue<V>
public int drainTo(Collection<? super V> c)
drainTo
in interface BlockingQueue<V>
public int drainTo(Collection<? super V> c, int maxElements)
drainTo
in interface BlockingQueue<V>
Copyright © 2016 Metron, Inc.. All rights reserved.