|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Identifier - public interface ResponseStrategy<Identifier>
Used on non-Firewalled nodes to predict if a firewalled node will accept a message. For example, the firewalled node pinged the local node, now can the local node respond? In most firewalls, the local node can respond for some amount of time.
| Method Summary | |
|---|---|
void |
messageReceived(Identifier i,
java.nio.ByteBuffer msg,
java.util.Map<java.lang.String,java.lang.Object> options)
Called when a message is directly received from the Identifier |
void |
messageSent(Identifier i,
java.nio.ByteBuffer msg,
java.util.Map<java.lang.String,java.lang.Object> options)
Called when a message is directly sent to the Identifier |
boolean |
sendDirect(Identifier i,
java.nio.ByteBuffer msg,
java.util.Map<java.lang.String,java.lang.Object> options)
True if we believe the firewall will accept the message (due to a recent message from the node) |
| Method Detail |
|---|
boolean sendDirect(Identifier i,
java.nio.ByteBuffer msg,
java.util.Map<java.lang.String,java.lang.Object> options)
i -
void messageSent(Identifier i,
java.nio.ByteBuffer msg,
java.util.Map<java.lang.String,java.lang.Object> options)
i - msg - options -
void messageReceived(Identifier i,
java.nio.ByteBuffer msg,
java.util.Map<java.lang.String,java.lang.Object> options)
i - msg - options -
|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||