public class CircularFifoQueue<E> extends AbstractQueue<E>
| Constructor and Description |
|---|
CircularFifoQueue(int maxEntries,
Consumer<E> overflowConsumer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e) |
boolean |
addAll(Collection<? extends E> c) |
Iterator<E> |
iterator() |
int |
limit() |
boolean |
offer(E element) |
E |
peek() |
E |
poll() |
boolean |
setLimit(int limit) |
int |
size() |
clear, element, removecontains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcontains, containsAll, equals, hashCode, isEmpty, parallelStream, remove, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArraypublic boolean add(E e)
add in interface Collection<E>add in interface Queue<E>add in class AbstractQueue<E>public boolean addAll(Collection<? extends E> c)
addAll in interface Collection<E>addAll in class AbstractQueue<E>public Iterator<E> iterator()
iterator in interface Iterable<E>iterator in interface Collection<E>iterator in class AbstractCollection<E>public int limit()
public boolean offer(E element)
public E peek()
public E poll()
public boolean setLimit(int limit)
public int size()
size in interface Collection<E>size in class AbstractCollection<E>Copyright © 2004–2021 "Tigase, Inc.". All rights reserved.