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 LivenessStrategy<Identifier,MessageType>

    public interface LivenessStrategy<Identifier,MessageType>

Method Summary
`void` | `checkLiveness(Identifier i, Continuation<Identifier,java.lang.Exception> c)` Notify the continuation when the liveness check has completed.
`int` | `getLiveness(Identifier identity)` Return the current liveness of the address.
`void` | `messageReceived(Identifier i, MessageType m)`
`void` | `socketAccepted(Identifier i)`
`void` | `socketConnected(Identifier i)`
`void` | `socketFailed(Identifier i)`

Method Detail

### checkLiveness

    void checkLiveness(Identifier i,
                       Continuation<Identifier,java.lang.Exception> c)

  Notify the continuation when the liveness check has completed.

  Parameters:
    `i` -
    `c` -

### getLiveness

    int getLiveness(Identifier identity)

  Return the current liveness of the address.

  Parameters:
    `identity` -
  Returns:

### messageReceived

    void messageReceived(Identifier i,
                         MessageType m)

### socketConnected

    void socketConnected(Identifier i)

### socketAccepted

    void socketAccepted(Identifier i)

### socketFailed

    void socketFailed(Identifier i)

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.