|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The RASIQueue interface describes those methods which must be implemented in order to be a queue for RAS events.
RASQueue
,
RASCircularQueue
Method Summary | |
---|---|
java.lang.Object |
dequeue()
Removes an object from the queue. |
void |
enqueue(java.lang.Object object)
Adds an object to the queue. |
java.lang.Object |
firstObject()
Returns the first object on the queue, but does not remove it from the queue. |
int |
getMaximumQueueSize()
Gets the maximum number of objects which this queue will hold. |
int |
getQueueSize()
Gets the current number of objects in this queue. |
boolean |
isCircular()
Determines if the queue is circular. |
boolean |
isEmpty()
Determines if the queue is empty. |
boolean |
isFull()
Determines if the queue is full. |
void |
requeue(java.lang.Object object)
Returns an object to the front of the queue. |
Method Detail |
public int getQueueSize()
public int getMaximumQueueSize()
public boolean isEmpty()
false
otherwise.public boolean isFull()
false
otherwise.public boolean isCircular()
false
otherwise.public void enqueue(java.lang.Object object) throws RASQueueFullException
object
- The object to be placed on the queue.RASQueueFullException
- This exception is thrown if the queue is full.public java.lang.Object dequeue() throws RASQueueEmptyException
RASQueueEmptyException
- This exception is thrown if the queue is empty.public void requeue(java.lang.Object object)
object
- The object to be placed on the queue.public java.lang.Object firstObject() throws RASQueueEmptyException
RASQueueEmptyException
- This exception is thrown if the queue is empty.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |