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

Constructor Index

 o MessageQueue()

Method Index

 o exists(int)
 o peek(int)
Get the data update from a specific information sources.
 o peekNext()
Peek the next element in the queue for future use.
 o peekNext(int)
Get the next data update from the specific information sources.
 o remove()
Get one Message from the MessageQueue and remove it.

Constructors

 o MessageQueue
 public MessageQueue()

Methods

 o exists
 public boolean exists(int theIndex)
 o 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.

 o 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.

 o 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.

 o 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