|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--inria.util.FIFOQueue
This class implements the first in first out queue.
Constructor Summary | |
FIFOQueue(int maxSize)
Constructs a FIFOQueue instance. |
Method Summary | |
void |
clear()
Clears the queue. |
java.lang.Object |
dequeue()
Dequeues an object from the queue. |
void |
enqueue(java.lang.Object obj)
Enqueues the given object. |
int |
getSize()
Returns the number of objects in the queue. |
void |
sync()
The calling thread will be blocked until the queue is empty. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FIFOQueue(int maxSize)
maxSize
- the maximum size of the queue.Method Detail |
public void enqueue(java.lang.Object obj)
obj
- the object to be added to the queue.public java.lang.Object dequeue()
public void sync()
public int getSize()
public void clear()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
JavaTM Reliable MulticastTM Service version 1.1
Copyright (c) 2001, Sun Microsystems Laboratories, All rights reserved.