All Packages Class Hierarchy This Package Previous Next Index
Class SWEEP.MessageQueue
java.lang.Object
|
+----SWEEP.Queue
|
+----SWEEP.MessageQueue
- public class MessageQueue
- extends Queue
- implements Serializable
-
MessageQueue()
-
-
exists(int)
-
-
peek(int)
- Get the data update from a specific information sources.
-
peekNext()
- Peek the next element in the queue for future use.
-
peekNext(int)
- Get the next data update from the specific information sources.
-
remove()
- Get one Message from the MessageQueue and remove it.
MessageQueue
public MessageQueue()
exists
public boolean exists(int theIndex)
peek
public Relation peek(int theIndex) throws Exception
- Get the data update from a specific information sources.
peek and peeknext should be called within one loop.
peekNext
public Relation peekNext(int theIndex) throws Exception
- Get the next data update from the specific information sources.
It should be used with the peek() function.
remove
public synchronized Element remove()
- Get one Message from the MessageQueue and remove it.
If the Queue is empty, it will wait for a while and retry again.
peekNext
public Element peekNext()
- Peek the next element in the queue for future use.
e.g. to lock it.
All Packages Class Hierarchy This Package Previous Next Index