|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mpisws.p2p.transport.rendezvous.TimeoutResponseStrategy<Identifier>
Identifier - public class TimeoutResponseStrategy<Identifier>
This impl allows responses up to timeout millis later.
| Constructor Summary | |
|---|---|
TimeoutResponseStrategy(int timeout,
Environment env)
|
|
| 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) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TimeoutResponseStrategy(int timeout,
Environment env)
| Method Detail |
|---|
public void messageReceived(Identifier i,
java.nio.ByteBuffer msg,
java.util.Map<java.lang.String,java.lang.Object> options)
ResponseStrategy
messageReceived in interface ResponseStrategy<Identifier>
public void messageSent(Identifier i,
java.nio.ByteBuffer msg,
java.util.Map<java.lang.String,java.lang.Object> options)
ResponseStrategy
messageSent in interface ResponseStrategy<Identifier>
public boolean sendDirect(Identifier i,
java.nio.ByteBuffer msg,
java.util.Map<java.lang.String,java.lang.Object> options)
ResponseStrategy
sendDirect in interface ResponseStrategy<Identifier>
|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||