public class BatchArrayQueue<T> extends Object implements Queue<T>
Constructor and Description |
---|
BatchArrayQueue(int initial,
Object lock) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(T t) |
boolean |
addAll(Collection<? extends T> items) |
void |
clear() |
void |
clearToBatch(long batch) |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> items) |
T |
element() |
void |
exportMessagesToBatch(Queue<T> target,
long batch) |
long |
getBatch() |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
void |
nextBatch() |
boolean |
offer(T t) |
T |
peek() |
T |
poll() |
T |
remove() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
<E> E[] |
toArray(E[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, hashCode, parallelStream, removeIf, spliterator, stream
public BatchArrayQueue(int initial, Object lock)
public boolean add(T t)
public boolean remove(Object o)
remove
in interface Collection<T>
public boolean addAll(Collection<? extends T> items)
addAll
in interface Collection<T>
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<T>
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<T>
public boolean containsAll(Collection<?> items)
containsAll
in interface Collection<T>
public boolean contains(Object o)
contains
in interface Collection<T>
public boolean isEmpty()
isEmpty
in interface Collection<T>
public int size()
size
in interface Collection<T>
public Object[] toArray()
toArray
in interface Collection<T>
public <E> E[] toArray(E[] a)
toArray
in interface Collection<T>
public void clear()
clear
in interface Collection<T>
public long getBatch()
public void nextBatch()
public void clearToBatch(long batch)
Copyright © 2008–2024 The CometD Project. All rights reserved.