|
uPortal 2.4.1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A FIFO Queue.
Method Summary | |
boolean |
isEmpty()
Checks if the queue is empty |
boolean |
isFull()
Checks to see if the queue is full |
void |
put(java.lang.Object o)
Puts an item into the Queue |
int |
size()
Gets the total number of items in the queue |
java.lang.Object |
take()
Takes the next item in the Queue, if there are no items in the queue the thread is blocked until there is. |
Method Detail |
public void put(java.lang.Object o) throws java.lang.InterruptedException
o
- the item being placed in the queue
java.lang.InterruptedException
- thrown when a thread is waiting to place an item
into a full queue and another thread interrupts itpublic java.lang.Object take() throws java.lang.InterruptedException
java.lang.InterruptedException
- thrown when a thread is waiting get an item
from an empty queue and another thread interrupts itpublic boolean isEmpty()
public boolean isFull()
public int size()
|
uPortal 2.4.1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |