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.


Variable Index

 o id
This messages ID
 o QUEUE_ADDED
Use this ID when a new element was added to the FIFO-Queue
 o QUEUE_REMOVED
Use this ID when the next element was removed from the FIFO-Queue
 o theObj
The object that was added or removed to/from the FIFO-Queue

Constructor Index

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

Method Index

 o getID()
 o getObj()

Variables

 o QUEUE_ADDED
 public static final int QUEUE_ADDED
Use this ID when a new element was added to the FIFO-Queue

 o QUEUE_REMOVED
 public static final int QUEUE_REMOVED
Use this ID when the next element was removed from the FIFO-Queue

 o id
 private int id
This messages ID

 o theObj
 private Object theObj
The object that was added or removed to/from the FIFO-Queue

Constructors

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

Methods

 o getID
 public int getID()
Returns:
the ID of this QueueMessage
 o getObj
 public Object getObj()
Returns:
the object that this message is about

All Packages  Class Hierarchy  This Package  Previous  Next  Index