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

## org.mpisws.p2p.transport.liveness
Interface PingListener<Identifier>

Type Parameters:
  `Identifier` -

All Known Implementing Classes:
  MinRTTProximityProvider

    public interface PingListener<Identifier>

Called when a ping is received.

Author:
  Jeff Hoye

Method Summary
`void` | `pingReceived(Identifier i, java.util.Map<java.lang.String,java.lang.Integer> options)` Called when we receive a ping (not a pong)
`void` | `pingResponse(Identifier i, int rtt, java.util.Map<java.lang.String,java.lang.Integer> options)` Pong received.

Method Detail

### pingResponse

    void pingResponse(Identifier i,
                      int rtt,
                      java.util.Map<java.lang.String,java.lang.Integer> options)

  Pong received.

  Parameters:
    `i` - Where the ping was from
    `rtt` - the RTT
    `options` - how the ping was sent (source route/udp etc)

### pingReceived

    void pingReceived(Identifier i,
                      java.util.Map<java.lang.String,java.lang.Integer> options)

  Called when we receive a ping (not a pong)

  Parameters:
    `i` -
    `options` -

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.