|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrice.pastry.messaging.Message
This is an abstract implementation of a message object.
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. |
NodeId |
getSenderId()
Get sender Id. |
java.io.ObjectInputStream |
getStream()
Get stream over which the object was deserialized. |
boolean |
hasPriority()
Get priority |
protected void |
setPriority(boolean prio)
Set priority. |
void |
setSenderId(NodeId id)
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 |
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 void setSenderId(NodeId id)
public boolean hasPriority()
protected void setPriority(boolean prio)
public java.io.ObjectInputStream getStream()
public boolean stamp(java.util.Date time)
time
- the timestamp.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |