All Packages Class Hierarchy This Package Previous Next Index

Class jdce.util.message.jdceMessageQueue
java.lang.Object
|
+----jdce.util.message.jdceMessageQueue

- public class jdceMessageQueue
- extends Object
- implements jdceMessageQueueOperations
Message Queue Implementation
- Version:
- 0.5 20 April 1998
- Author:
- Shrideep Pallickara

-
jdceMessageQueue()
-
-
addItem(Object)
-
Adds an Item to the message Queue
-
addItemToTop(Object)
-
Adds an Item to the top of the message Queue
-
dataAvailable()
-
Report the availability of data on the Message Queue
-
elements()
-
Return an enumeration of all the Widgets in the message queue
-
nextItem()
-
Get the next Item from the message Queue
-
peekItem()
-
Returns the head of the jdceMessageQueue
-
queueSize()
-
Query the queue Size, corresponds to the number of messages unprocessed
in the messageQueue.
-
removeAllItems()
-
Removes all Widgets from the message Queue.
-
removeItem(Object)
-
Removes an Item from the message Queue.
-
toString()
-
Convert the entire MessageQueue into a String
jdceMessageQueue
public jdceMessageQueue()
addItem
public synchronized void addItem(Object object)
-
Adds an Item to the message Queue
- Parameters:
- obj - The message to be added to the Message Queue, this could be
either a jdceMessage type or any Object Type
- See Also:
- jdceMessage, removeItem
addItemToTop
public synchronized void addItemToTop(Object object)
-
Adds an Item to the top of the message Queue
- Parameters:
- obj - The message to be added to the Message Queue, this could be
either a jdceMessage type or any Object Type
- See Also:
- jdceMessage, addItem
nextItem
public synchronized Object nextItem()
-
Get the next Item from the message Queue
- Returns:
- object The next messageWidget in the MessageQueue.
- See Also:
- jdceMessage, removeAllItems, addItem
removeItem
public synchronized Object removeItem(Object object1)
-
Removes an Item from the message Queue. This corresponds to the Object
used as the parameter.
- Parameters:
- obj - The message to be removed from the Message Queue, this could be
either a jdceMessage type or any Object Type
- See Also:
- jdceMessage, removeAllItems, addItem
removeAllItems
public synchronized void removeAllItems()
-
Removes all Widgets from the message Queue.
This corresponds to the Object used as the parameter.
- Parameters:
- obj - The message to be removed from the Message Queue, this could be
either a jdceMessage type or any Object Type
- See Also:
- jdceMessage, nextItem, addItem
peekItem
public synchronized Object peekItem()
-
Returns the head of the jdceMessageQueue
- See Also:
- nextItem, addItem
dataAvailable
public boolean dataAvailable()
-
Report the availability of data on the Message Queue
- Returns:
- true If there is data available
queueSize
public int queueSize()
-
Query the queue Size, corresponds to the number of messages unprocessed
in the messageQueue.
- Returns:
- size the Message Queue length
- See Also:
- dataAvailable
elements
public synchronized Enumeration elements()
-
Return an enumeration of all the Widgets in the message queue
- Returns:
- enum The jdceQueueEnumerator
toString
public String toString()
-
Convert the entire MessageQueue into a String
- Returns:
- string The String Representation of all the Widgets in the Queue
- Overrides:
- toString in class Object

All Packages Class Hierarchy This Package Previous Next Index