All Packages Class Hierarchy This Package Previous Next Index
Class Webcrawler.FIFOQueue.QueueMessage
java.lang.Object
|
+----Webcrawler.FIFOQueue.QueueMessage
- public class QueueMessage
- extends Object
This is the Message-Object that the FIFOQueue sends out if elements are added or removed
from the queue.
-
id
- This messages ID
-
QUEUE_ADDED
- Use this ID when a new element was added to the FIFO-Queue
-
QUEUE_REMOVED
- Use this ID when the next element was removed from the FIFO-Queue
-
theObj
- The object that was added or removed to/from the FIFO-Queue
-
QueueMessage(int, Object)
- Creates a new QueueMessage with the specified id saying that the object o
was added or removed to/from the FIFO-Queue.
-
getID()
-
-
getObj()
-
QUEUE_ADDED
public static final int QUEUE_ADDED
- Use this ID when a new element was added to the FIFO-Queue
QUEUE_REMOVED
public static final int QUEUE_REMOVED
- Use this ID when the next element was removed from the FIFO-Queue
id
private int id
- This messages ID
theObj
private Object theObj
- The object that was added or removed to/from the FIFO-Queue
QueueMessage
public QueueMessage(int id,
Object o)
- Creates a new QueueMessage with the specified id saying that the object o
was added or removed to/from the FIFO-Queue.
getID
public int getID()
- Returns:
- the ID of this QueueMessage
getObj
public Object getObj()
- Returns:
- the object that this message is about
All Packages Class Hierarchy This Package Previous Next Index