Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## rice.pastry.direct
Interface GenericSimulatorListener<Identifier,MessageType>

All Known Subinterfaces:
  SimulatorListener

    public interface GenericSimulatorListener<Identifier,MessageType>

Method Summary
`void` | `messageReceived(MessageType m, Identifier from, Identifier to)` Called for every message received over the network.
`void` | `messageSent(MessageType m, Identifier from, Identifier to, int delay)` Called for every message sent over the network.

Method Detail

### messageSent

    void messageSent(MessageType m,
                     Identifier from,
                     Identifier to,
                     int delay)

  Called for every message sent over the network.

  Parameters:
    `m` - the Message that was sent.
    `from` - the source.
    `to` - the destination
    `delay` - when the message will be delivered (in millis)

### messageReceived

    void messageReceived(MessageType m,
                         Identifier from,
                         Identifier to)

  Called for every message received over the network.

  Parameters:
    `m` - the Message that was sent.
    `from` - the source.
    `to` - the destination

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Rice Pastry API
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2005 - Rice Pastry.