Interface ConnectionListener

All Known Implementing Classes:
NodeManager, SessionManager, SimpleSyncClient

public interface ConnectionListener

A connection setup/tear-down observer. The ConnectionListener interface is used by the Node class to signal that a connection has been established (CER/CEA has been sucessfully exchanged) or that a connection has been lost (Due to DPR or broken transport connection)

Method Summary
 void handle(ConnectionKey connkey, Peer peer, boolean up)
          A connection has changed state.

Method Detail


void handle(ConnectionKey connkey,
            Peer peer,
            boolean up)
A connection has changed state. If up is false then connkey is no longer valid (connection lost).

connkey - The connection key.
peer - The peer the connection is to.
up - True if the connection has been established. False if the connection has been lost.