ca.mcgill.cs.postina.scribe
Class AckMessage

java.lang.Object
  extended by ca.mcgill.cs.postina.scribe.AckMessage
All Implemented Interfaces:
java.io.Serializable, rice.p2p.commonapi.Message

public class AckMessage
extends java.lang.Object
implements java.io.Serializable, rice.p2p.commonapi.Message

An AckMessage is an acknowledgment confirming the arrival of a message.

Version:
8-Jan-08
Author:
Dominik Zindel
See Also:
Serialized Form

Field Summary
private  MessageID messageID
          The unique identifier of a message.
private static long serialVersionUID
           
 
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
AckMessage(MessageID messageID)
          The default constructor takes only a messageID.
 
Method Summary
 MessageID getMessageID()
          This method gets the identifier of the message that has been acknowledged.
 int getPriority()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

messageID

private final MessageID messageID
The unique identifier of a message.

Constructor Detail

AckMessage

public AckMessage(MessageID messageID)
The default constructor takes only a messageID.

Parameters:
messageID - The unique identifier of the message to be acknowledged.
Method Detail

getMessageID

public MessageID getMessageID()
This method gets the identifier of the message that has been acknowledged.

Returns:
The unique identifier of the message.

getPriority

public int getPriority()
Specified by:
getPriority in interface rice.p2p.commonapi.Message