|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrice.p2p.scribe.messaging.AbstractSubscribeMessage
public abstract class AbstractSubscribeMessage
| Field Summary | |
|---|---|
protected int |
id
The id of this subscribe message |
protected NodeHandle |
source
|
protected java.util.List<Topic> |
topics
You can now subscribe to a bunch of Topics at the same time. |
| 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 |
AbstractSubscribeMessage(InputBuffer buf,
Endpoint endpoint)
Protected because it should only be called from an extending class, to get version numbers correct. |
|
AbstractSubscribeMessage(NodeHandle source,
java.util.List<Topic> topics,
int id)
Constructor which takes a unique integer Id |
| Method Summary | |
|---|---|
int |
getId()
Returns this subscribe lost message's id |
int |
getPriority()
Method which should return the priority level of this message. |
NodeHandle |
getSource()
Method which returns this messages' source address |
java.util.List<Topic> |
getTopics()
|
void |
serialize(OutputBuffer buf)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface rice.p2p.commonapi.rawserialization.RawMessage |
|---|
getType |
| Field Detail |
|---|
protected int id
protected NodeHandle source
protected java.util.List<Topic> topics
| Constructor Detail |
|---|
public AbstractSubscribeMessage(NodeHandle source,
java.util.List<Topic> topics,
int id)
id - The unique idsource - The source addressdest - The destination address
protected AbstractSubscribeMessage(InputBuffer buf,
Endpoint endpoint)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public int getId()
public int getPriority()
Message
getPriority in interface Messagepublic NodeHandle getSource()
public java.util.List<Topic> getTopics()
public java.lang.String toString()
toString in class java.lang.Object
public void serialize(OutputBuffer buf)
throws java.io.IOException
serialize in interface RawSerializablejava.io.IOException
|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||