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

Constructor Index

 o jdceMessageQueue()

Method Index

 o addItem(Object)
Adds an Item to the message Queue
 o addItemToTop(Object)
Adds an Item to the top of the message Queue
 o dataAvailable()
Report the availability of data on the Message Queue
 o elements()
Return an enumeration of all the Widgets in the message queue
 o nextItem()
Get the next Item from the message Queue
 o peekItem()
Returns the head of the jdceMessageQueue
 o queueSize()
Query the queue Size, corresponds to the number of messages unprocessed in the messageQueue.
 o removeAllItems()
Removes all Widgets from the message Queue.
 o removeItem(Object)
Removes an Item from the message Queue.
 o toString()
Convert the entire MessageQueue into a String

Constructors

 o jdceMessageQueue
 public jdceMessageQueue()

Methods

 o 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
 o 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
 o 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
 o 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
 o 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
 o peekItem
 public synchronized Object peekItem()
Returns the head of the jdceMessageQueue

See Also:
nextItem, addItem
 o dataAvailable
 public boolean dataAvailable()
Report the availability of data on the Message Queue

Returns:
true If there is data available
 o 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
 o elements
 public synchronized Enumeration elements()
Return an enumeration of all the Widgets in the message queue

Returns:
enum The jdceQueueEnumerator
 o 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