E
- public interface InternalQueue<E> extends Queue<E>
Modifier and Type | Method and Description |
---|---|
int |
drainTo(Collection<? super E> c)
Drain items from this queue to the specified collection
|
int |
drainTo(Collection<? super E> c,
int maxElements)
Drain items from this queue to the specified collection
|
int |
getCapacity()
Return the capacity of the queue
|
Condition |
getNotFullCond()
Get not full condition
|
int |
getPriority()
Get the Priority of the queue
|
int |
remainingCapacity()
Remaining capacity of the queue.
|
void |
setNotFullCond(Condition condition)
Get not full condition
|
void |
setPriority(int p)
Set the priority
|
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray
int getPriority()
void setPriority(int p)
p
- priorityCondition getNotFullCond()
void setNotFullCond(Condition condition)
condition
- conditionint drainTo(Collection<? super E> c)
c
- collection to add itemint drainTo(Collection<? super E> c, int maxElements)
c
- collection to add itemmaxElements
- maximum number of element to drainint remainingCapacity()
int getCapacity()
Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.