public class SimpleBlockingQueue<E> extends AbstractQueue<E> implements BlockingQueue<E>
| Constructor and Description |
|---|
SimpleBlockingQueue() |
SimpleBlockingQueue(boolean priorityAware) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e) |
void |
clear() |
int |
drainTo(Collection<? super E> c) |
int |
drainTo(Collection<? super E> c,
int maxElements) |
Iterator<E> |
iterator() |
boolean |
offer(E e) |
boolean |
offer(E e,
long timeout,
TimeUnit unit) |
E |
peek() |
E |
poll() |
E |
poll(long timeout,
TimeUnit unit) |
void |
put(E e) |
int |
remainingCapacity() |
boolean |
remove(Object obj) |
int |
size() |
E |
take() |
addAll, element, removecontains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcontainsaddAll, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArraypublic SimpleBlockingQueue()
public SimpleBlockingQueue(boolean priorityAware)
public boolean offer(E e)
public void put(E e)
put in interface BlockingQueue<E>public boolean remove(Object obj)
remove in interface Collection<E>remove in interface BlockingQueue<E>remove in class AbstractCollection<E>public E take() throws InterruptedException
take in interface BlockingQueue<E>InterruptedExceptionpublic E poll(long timeout, TimeUnit unit) throws InterruptedException
poll in interface BlockingQueue<E>InterruptedExceptionpublic void clear()
clear in interface Collection<E>clear in class AbstractQueue<E>public boolean add(E e)
add in interface Collection<E>add in interface BlockingQueue<E>add in interface Queue<E>add in class AbstractQueue<E>public boolean offer(E e, long timeout, TimeUnit unit) throws InterruptedException
offer in interface BlockingQueue<E>InterruptedExceptionpublic int remainingCapacity()
remainingCapacity in interface BlockingQueue<E>public int drainTo(Collection<? super E> c)
drainTo in interface BlockingQueue<E>public int drainTo(Collection<? super E> c, int maxElements)
drainTo in interface BlockingQueue<E>public Iterator<E> iterator()
iterator in interface Iterable<E>iterator in interface Collection<E>iterator in class AbstractCollection<E>public int size()
size in interface Collection<E>size in class AbstractCollection<E>Copyright © 2021 Hazelcast, Inc.. All rights reserved.