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, remove
contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
contains, containsAll, equals, hashCode, isEmpty, parallelStream, remove, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray
public 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–2020 "Tigase, Inc.". All rights reserved.