|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SimulatorListener
Notified for every message that is sent over the network. to install this, call NetworkSimulator.addSimulatorListener().
| Method Summary | |
|---|---|
void |
messageReceived(Message m,
NodeHandle from,
NodeHandle to)
Called for every message received over the network. |
void |
messageSent(Message m,
NodeHandle from,
NodeHandle to,
int delay)
Called for every message sent over the network. |
| Method Detail |
|---|
void messageSent(Message m,
NodeHandle from,
NodeHandle to,
int delay)
m - the Message that was sent.from - the source.to - the destinationdelay - when the message will be delivered (in millis)
void messageReceived(Message m,
NodeHandle from,
NodeHandle to)
m - the Message that was sent.from - the source.to - the destination
|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||