|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrice.p2p.multiring.messaging.RingMessage
public class RingMessage
| Field Summary | |
|---|---|
protected String |
application
The name of the application which sent this message |
protected RingId |
id
The target of this ring message |
protected RawMessage |
message
The internal message to be sent |
static short |
TYPE
|
| Constructor Summary | |
|---|---|
RingMessage(InputBuffer buf,
Endpoint ringEndpoint,
Hashtable<String,Endpoint> endpoints)
TODO: This can probably be done more efficiently, IE, deserialize the message on getMessage(). |
|
RingMessage(RingId id,
RawMessage message,
String application)
Constructor which takes a unique integer Id |
|
| Method Summary | |
|---|---|
String |
getApplication()
Method which returns this messages' applicaiton name |
RingId |
getId()
Method which returns this messages' id |
Message |
getMessage()
|
int |
getPriority()
Method which should return the priority level of this message. |
RawMessage |
getRawMessage()
Method which returns this messages' internal message |
short |
getType()
|
void |
serialize(OutputBuffer buf)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final short TYPE
protected RingId id
protected RawMessage message
protected String application
| Constructor Detail |
|---|
public RingMessage(RingId id,
RawMessage message,
String application)
id - The unique idsource - The source addressdest - The destination address
public RingMessage(InputBuffer buf,
Endpoint ringEndpoint,
Hashtable<String,Endpoint> endpoints)
throws IOException
buf - endpoint - md - sender - priority -
IOException| Method Detail |
|---|
public int getPriority()
public RingId getId()
public RawMessage getRawMessage()
public Message getMessage()
public String getApplication()
public short getType()
getType in interface RawScribeContent
public void serialize(OutputBuffer buf)
throws IOException
serialize in interface RawScribeContentIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||