Rice Pastry API

rice.p2p.scribe.messaging
Class SubscribeLostMessage

java.lang.Object
  extended by rice.p2p.scribe.messaging.SubscribeLostMessage
All Implemented Interfaces:
java.io.Serializable, Message

public class SubscribeLostMessage
extends java.lang.Object
implements Message

Version:
$Id: SubscribeLostMessage.java 3650 2007-03-18 19:33:01Z jeffh $
Author:
Alan Mislove
See Also:
Serialized Form

Field Summary
protected  int id
           
protected  Topic topic
           
 
Fields inherited from interface rice.p2p.commonapi.Message
DEFAULT_PRIORITY, HIGH_PRIORITY, LOW_PRIORITY, LOWEST_PRIORITY, MAX_PRIORITY, MEDIUM_HIGH_PRIORITY, MEDIUM_LOW_PRIORITY, MEDIUM_PRIORITY
 
Constructor Summary
SubscribeLostMessage(NodeHandle source, Topic topic, int id)
          Constructor which takes a unique integer Id
 
Method Summary
 int getId()
           
 int getPriority()
          Method which should return the priority level of this message.
 Topic getTopic()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

topic

protected Topic topic

id

protected int id
Constructor Detail

SubscribeLostMessage

public SubscribeLostMessage(NodeHandle source,
                            Topic topic,
                            int id)
Constructor which takes a unique integer Id

Parameters:
id - The unique id
source - The source address
dest - The destination address
Method Detail

getTopic

public Topic getTopic()

getId

public int getId()

getPriority

public int getPriority()
Description copied from interface: Message
Method which should return the priority level of this message. The messages can range in priority from -15 (highest priority) to 15 (lowest) - when sending messages across the wire, the queue is sorted by message priority. If the queue reaches its limit, the lowest priority messages are discarded. Thus, applications which are very verbose should have LOW_PRIORITY or lower, and applications which are somewhat quiet are allowed to have MEDIUM_PRIORITY or possibly even HIGH_PRIORITY.

Specified by:
getPriority in interface Message
Returns:
This message's priority

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.