|
ePOST API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.pastry.messaging.Message
public abstract class Message
This is an abstract implementation of a message object.
Field Summary | |
---|---|
static int |
DEFAULT_PRIORITY_LEVEL
|
Constructor Summary | |
---|---|
Message(Address dest)
Constructor. |
|
Message(Address dest,
Credentials cred)
Constructor. |
|
Message(Address dest,
Credentials cred,
java.util.Date timestamp)
Constructor. |
|
Message(Address dest,
java.util.Date timestamp)
Constructor. |
Method Summary | |
---|---|
Credentials |
getCredentials()
Gets the credentials of the sender. |
java.util.Date |
getDate()
Gets the timestamp of the message, if it exists. |
Address |
getDestination()
Gets the address of message receiver that the message is for. |
int |
getPriority()
Get priority |
NodeHandle |
getSender()
Get sender. |
NodeId |
getSenderId()
Get sender Id. |
protected void |
setPriority(int prio)
Set priority. |
void |
setSender(NodeHandle nh)
Set sender Id. |
boolean |
stamp(java.util.Date time)
If the message has no timestamp, this will stamp the message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_PRIORITY_LEVEL
Constructor Detail |
---|
public Message(Address dest)
dest
- the destination.public Message(Address dest, Credentials cred)
dest
- the destination.cred
- the credentials.public Message(Address dest, Credentials cred, java.util.Date timestamp)
dest
- the destination.cred
- the credentials.timestamp
- the timestamppublic Message(Address dest, java.util.Date timestamp)
dest
- the destination.timestamp
- the timestampMethod Detail |
---|
public Address getDestination()
public Credentials getCredentials()
public java.util.Date getDate()
public NodeId getSenderId()
public NodeHandle getSender()
public void setSender(NodeHandle nh)
the
- immediate sender's NodeId.public int getPriority()
protected void setPriority(int prio)
the
- new priority.public boolean stamp(java.util.Date time)
time
- the timestamp.
|
ePOST API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |