All Packages Class Hierarchy This Package Previous Next Index

Class edu.syr.npac.webflow.impl.connection.ComputeQueue
java.lang.Object
|
+----edu.syr.npac.webflow.impl.connection.ComputeQueue

- public class ComputeQueue
- extends Object
Compute Queue Implementation

-
ComputeQueue()
-
-
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 compute Queue
-
elements()
-
Return an enumeration of all the Widgets in the compute Queue
-
insertItem(Object, Object)
-
Inserts an item between 2 other items
-
nextItem()
-
Get the next Item from the message Queue
-
peekItem()
-
Returns the head of the computeQueue
-
queueSize()
-
Query the queue Size, corresponds to the number of messages unprocessed
in the computeQueue.
-
removeAllItems()
-
Removes all Widgets from the compute Queue.
-
removeItem(Object)
-
Removes an Item from the compute Queue.
-
toObjectArray()
-
Convert the entire computeQueue into an Object Array
-
toString()
-
Convert the entire computeQueue into a String
ComputeQueue
public ComputeQueue()
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 Module type or any Object Type
- See Also:
- ComputeQueue, 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 Module type or any Object Type
- See Also:
- ComputeQueue, addItem
nextItem
public synchronized Object nextItem()
-
Get the next Item from the message Queue
- Returns:
- object The next messageWidget in the computeQueue.
- See Also:
- ComputeQueue, removeAllItems, addItem
insertItem
public synchronized Object insertItem(Object object1,
Object object3)
-
Inserts an item between 2 other items
removeItem
public synchronized Object removeItem(Object object1)
-
Removes an Item from the compute Queue. This corresponds to the Object
used as the parameter.
- Parameters:
- obj - The message to be removed from the compute Queue, this could be
either a Module type or any Object Type
- See Also:
- ComputeQueue, removeAllItems, addItem
removeAllItems
public synchronized void removeAllItems()
-
Removes all Widgets from the compute Queue.
This corresponds to the Object used as the parameter.
- Parameters:
- obj - The message to be removed from the compute Queue, this could be
either a Module type or any Object Type
- See Also:
- ComputeQueue, nextItem, addItem
peekItem
public synchronized Object peekItem()
-
Returns the head of the computeQueue
- See Also:
- nextItem, addItem
dataAvailable
public boolean dataAvailable()
-
Report the availability of data on the compute 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 computeQueue.
- Returns:
- size the compute Queue length
- See Also:
- dataAvailable
elements
public synchronized Enumeration elements()
-
Return an enumeration of all the Widgets in the compute Queue
- Returns:
- enum The QueueEnumerator
toString
public String toString()
-
Convert the entire computeQueue into a String
- Returns:
- string The String Representation of all the Widgets in the Queue
- Overrides:
- toString in class Object
toObjectArray
public synchronized Object[] toObjectArray()
-
Convert the entire computeQueue into an Object Array
- Returns:
- Object[] The Object Representation of all the Widgets in the Queue

All Packages Class Hierarchy This Package Previous Next Index