rice.p2p.scribe.messaging
Class MaintenanceMessage
java.lang.Object
rice.p2p.scribe.messaging.MaintenanceMessage
- All Implemented Interfaces:
- Serializable, Message
public class MaintenanceMessage
- extends Object
- implements Message
- Version:
- $Id: MaintenanceMessage.java 3648 2007-03-13 13:50:48Z jeffh $
- Author:
- Alan Mislove
- See Also:
- Serialized Form
MaintenanceMessage
public MaintenanceMessage()
- Constructor
- Parameters:
id - The unique idsource - The source addressdest - The destination address
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
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2010. All Rights Reserved.