E
- public interface InternalQueue<E>
extends java.util.Queue<E>
Modifier and Type | Method and Description |
---|---|
int |
drainTo(java.util.Collection<? super E> c)
Drain items from this queue to the specified collection
|
int |
drainTo(java.util.Collection<? super E> c,
int maxElements)
Drain items from this queue to the specified collection
|
int |
getCapacity()
Return the capacity of the queue
|
java.util.concurrent.locks.Condition |
getNotFullCond()
Get not full condition
|
int |
getPriority()
Get the Priority of the queue
|
int |
remainingCapacity()
Remaining capacity of the queue.
|
void |
setNotFullCond(java.util.concurrent.locks.Condition condition)
Get not full condition
|
void |
setPriority(int p)
Set the priority
|
int getPriority()
void setPriority(int p)
p
- priorityjava.util.concurrent.locks.Condition getNotFullCond()
void setNotFullCond(java.util.concurrent.locks.Condition condition)
condition
- conditionint drainTo(java.util.Collection<? super E> c)
c
- collection to add itemint drainTo(java.util.Collection<? super E> c, int maxElements)
c
- collection to add itemmaxElements
- maximum number of element to drainint remainingCapacity()
int getCapacity()
Copyright © 2005-2022 Apache Software Foundation. All Rights Reserved.