Class BatchArrayQueue<T>
java.lang.Object
org.cometd.server.ext.BatchArrayQueue<T>
- All Implemented Interfaces:
Iterable<T>
,Collection<T>
,Queue<T>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addAll
(Collection<? extends T> items) void
clear()
void
clearToBatch
(long batch) boolean
boolean
containsAll
(Collection<?> items) element()
void
exportMessagesToBatch
(Queue<T> target, long batch) long
getBatch()
boolean
isEmpty()
iterator()
void
boolean
peek()
poll()
remove()
boolean
boolean
removeAll
(Collection<?> c) boolean
retainAll
(Collection<?> c) int
size()
Object[]
toArray()
<E> E[]
toArray
(E[] a) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Constructor Details
-
BatchArrayQueue
-
-
Method Details
-
offer
-
add
-
peek
-
element
-
poll
-
remove
-
remove
- Specified by:
remove
in interfaceCollection<T>
-
addAll
- Specified by:
addAll
in interfaceCollection<T>
-
removeAll
- Specified by:
removeAll
in interfaceCollection<T>
-
retainAll
- Specified by:
retainAll
in interfaceCollection<T>
-
containsAll
- Specified by:
containsAll
in interfaceCollection<T>
-
contains
- Specified by:
contains
in interfaceCollection<T>
-
iterator
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceCollection<T>
-
size
public int size()- Specified by:
size
in interfaceCollection<T>
-
toArray
- Specified by:
toArray
in interfaceCollection<T>
-
toArray
public <E> E[] toArray(E[] a) - Specified by:
toArray
in interfaceCollection<T>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<T>
-
getBatch
public long getBatch() -
nextBatch
public void nextBatch() -
clearToBatch
public void clearToBatch(long batch) -
exportMessagesToBatch
-