|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrice.p2p.scribe.ScribeImpl.ScribeClientConverter
public static class ScribeImpl.ScribeClientConverter
Adapts an old ScribeClient to a new ScribeMultiClient This is for reverse compatibility.
| Constructor Summary | |
|---|---|
ScribeImpl.ScribeClientConverter(ScribeClient client)
|
|
| 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)
Informs the client that a subscribe on the given topic failed - the client should retry the subscribe or take appropriate action. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScribeImpl.ScribeClientConverter(ScribeClient client)
| Method Detail |
|---|
public void subscribeFailed(java.util.Collection<Topic> topics)
ScribeMultiClient
subscribeFailed in interface ScribeMultiClientpublic void subscribeSuccess(java.util.Collection<Topic> topics)
ScribeMultiClient
subscribeSuccess in interface ScribeMultiClient
public boolean anycast(Topic topic,
ScribeContent content)
ScribeMultiClient
anycast in interface ScribeClientanycast in interface ScribeMultiClienttopic - The topic the message was anycasted tocontent - The content which was anycasted
public void childAdded(Topic topic,
NodeHandle child)
ScribeMultiClient
childAdded in interface ScribeClientchildAdded in interface ScribeMultiClienttopic - The topic to unsubscribe fromchild - The child that was added
public void childRemoved(Topic topic,
NodeHandle child)
ScribeMultiClient
childRemoved in interface ScribeClientchildRemoved in interface ScribeMultiClienttopic - The topic to unsubscribe fromchild - The child that was removed
public void deliver(Topic topic,
ScribeContent content)
ScribeMultiClient
deliver in interface ScribeClientdeliver in interface ScribeMultiClienttopic - The topic the message was published tocontent - The content which was publishedpublic void subscribeFailed(Topic topic)
ScribeMultiClient
subscribeFailed in interface ScribeClientsubscribeFailed in interface ScribeMultiClienttopic - 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 | |||||||||