|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.mcgill.cs.postina.scribe.PostinaScribeTransportMessage
public class PostinaScribeTransportMessage
A ScribeTransportMessage is the message used internally to
encapsulate the message to be sent over the network.
| Field Summary | |
|---|---|
private java.io.Serializable |
content
The actual message is a serializable that has been
submitted to Postina for publishing or direct sending. |
private PostinaID |
from
The PostinaID identifying the sender/publisher of the message. |
private int |
priority
The priority designed for priority-based treatment by the application is defined as integer. |
private static long |
serialVersionUID
|
private PostinaTopic |
topic
The PostinaTopic of the published message. |
| 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 | |
|---|---|
protected |
PostinaScribeTransportMessage(PostinaID from,
PostinaTopic topic,
java.io.Serializable content)
An alternative constructor for a PostinaScribeTransportMessage without a specific priority. |
protected |
PostinaScribeTransportMessage(PostinaID from,
PostinaTopic topic,
java.io.Serializable content,
int priority)
The default constructor for a PostinaScribeTransportMessage
taking all properties including the priority. |
| Method Summary | |
|---|---|
java.io.Serializable |
getContent()
This method gets the Serializable representing the message
that has actually been sent by the sender. |
PostinaID |
getFrom()
This method gets the PostinaID identifying the
sender/publisher of the message. |
int |
getPriority()
This method gets the integer priority that is designed to
be used by the application using Postina. |
PostinaTopic |
getTopic()
This method gets the PostinaTopic assigned to this
message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
private final java.io.Serializable content
serializable that has been
submitted to Postina for publishing or direct sending.
private final PostinaID from
PostinaID identifying the sender/publisher of the message.
private final int priority
private final PostinaTopic topic
PostinaTopic of the published message. Direct messages do
have the topic null.
| Constructor Detail |
|---|
protected PostinaScribeTransportMessage(PostinaID from,
PostinaTopic topic,
java.io.Serializable content)
PostinaScribeTransportMessage without a specific priority.
The default priority of value 5 is assumed. Use the constructor
PostinaMessage(PostinaID, PostinaTopic, Serializable, int)
to specify a priority. Note that the constructor is protected as
applications using Postina are not supposed to create messages.
from - The PostinaID identifying the sender/publisher of the
message.topic - The PostinaTopic identifying the topic of a published
message. Direct messages have a topic of value
null.content - The Serializable that represents the message
actually issued by the sender.
protected PostinaScribeTransportMessage(PostinaID from,
PostinaTopic topic,
java.io.Serializable content,
int priority)
PostinaScribeTransportMessage
taking all properties including the priority. Note that the constructor
is protected as applications using Postina are not supposed to create
messages.
from - The PostinaID identifying the sender/publisher of the
message.topic - The PostinaTopic identifying the topic of a published
message. Direct messages have a topic of value
null.content - The Serializable that represents the message
actually issued by the sender.priority - The integer priority is designed for the
application to decide about the importance of the incoming
message. This priority is not used for routing.| Method Detail |
|---|
public java.io.Serializable getContent()
PostinaMessageSerializable representing the message
that has actually been sent by the sender.
getContent in interface PostinaMessageSerializable which is the message sent by the
creator.public PostinaID getFrom()
PostinaMessagePostinaID identifying the
sender/publisher of the message.
getFrom in interface PostinaMessagePostinaID that identifies the author of the message.public int getPriority()
PostinaMessageinteger priority that is designed to
be used by the application using Postina.
getPriority in interface PostinaMessagegetPriority in interface rice.p2p.commonapi.Messageinteger value representing the priority of the
message.public PostinaTopic getTopic()
PostinaMessagePostinaTopic assigned to this
message.
getTopic in interface PostinaMessagePostinaTopic assigned to this message.
null for direct (private) messages.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||