rice.p2p.replication.manager.messaging
Class TimeoutMessage
java.lang.Object
rice.p2p.replication.manager.messaging.TimeoutMessage
- All Implemented Interfaces:
- Serializable, Message
public class TimeoutMessage
- extends Object
- implements Message
- Version:
- $Id: TimeoutMessage.java 3613 2007-02-15 14:45:14Z jstewart $
- Author:
- Alan Mislove
- See Also:
- Serialized Form
|
Field Summary |
protected Id |
id
THe unique id of this message |
|
Constructor Summary |
TimeoutMessage(Id id)
Constructor which takes a unique integer Id |
|
Method Summary |
Id |
getId()
Returns the id of this message |
int |
getPriority()
Method which should return the priority level of this message. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
id
protected Id id
- THe unique id of this message
TimeoutMessage
public TimeoutMessage(Id id)
- Constructor which takes a unique integer Id
- Parameters:
uid - The uid
getPriority
public int getPriority()
- Method which should return the priority level of this message. The messages
can range in priority from 0 (highest priority) to Integer.MAX_VALUE (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
getId
public Id getId()
- Returns the id of this message
- Returns:
- The id of this message
Copyright © 2010. All Rights Reserved.