|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ScribeMultiClient
The new interface for scribe as of FreePastry 2.1. Handles multiple concurrent Joins/Failures.
Method Summary | |
---|---|
boolean |
anycast(Topic topic,
ScribeContent content)
This method is invoked when an anycast is received for a topic which this client is interested in. |
void |
childAdded(Topic topic,
NodeHandle child)
Informs this client that a child was added to a topic in which it was interested in. |
void |
childRemoved(Topic topic,
NodeHandle child)
Informs this client that a child was removed from a topic in which it was interested in. |
void |
deliver(Topic topic,
ScribeContent content)
This method is invoked when a message is delivered for a topic this client is interested in. |
void |
subscribeFailed(java.util.Collection<Topic> topics)
Informs the client that a subscribe on the given topic failed - the client should retry the subscribe or take appropriate action. |
void |
subscribeFailed(Topic topic)
Deprecated. use subscribeFailed(Collection |
void |
subscribeSuccess(java.util.Collection<Topic> topics)
Informs the client that a subscribe on the given topic failed - the client should retry the subscribe or take appropriate action. |
Method Detail |
---|
boolean anycast(Topic topic, ScribeContent content)
anycast
in interface ScribeClient
topic
- The topic the message was anycasted tocontent
- The content which was anycasted
void deliver(Topic topic, ScribeContent content)
deliver
in interface ScribeClient
topic
- The topic the message was published tocontent
- The content which was publishedvoid childAdded(Topic topic, NodeHandle child)
childAdded
in interface ScribeClient
topic
- The topic to unsubscribe fromchild
- The child that was addedvoid childRemoved(Topic topic, NodeHandle child)
childRemoved
in interface ScribeClient
topic
- The topic to unsubscribe fromchild
- The child that was removedvoid subscribeFailed(Topic topic)
subscribeFailed
in interface ScribeClient
topic
- The topic which the subscribe failed onvoid subscribeFailed(java.util.Collection<Topic> topics)
topic
- The topic which the subscribe failed onvoid subscribeSuccess(java.util.Collection<Topic> topics)
topic
- The topic which the subscribe failed on
|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |