/**
* Interface for listeners that want to be notified about node events.
- *
+ *
* @author David ‘Bombe’ Roden <bombe@freenetproject.org>
- * @version $Id$
*/
public interface NodeListener extends EventListener {
/**
* Notifies a listener that a node was added.
- *
+ *
* @param node
* The node that was added
*/
/**
* Notifies a listener that a node was removed.
- *
+ *
* @param node
* The node that was removed
*/
/**
* Notifies a listener that a connection to the given node was established.
- *
+ *
* @param node
* The node that is now connected
*/
/**
* Notifies a listener that a connection to a node has failed.
- *
+ *
* @param node
* The node that could not be connected
* @param cause
public void nodeConnectionFailed(Node node, Throwable cause);
/**
- * Notifies a listener that a connection to the given node was severed. If
- * the listener needs the high-level client associated with the node for
- * anything else (like deregistering as listener from it) it should retrieve
- * the high-level client using {@link NodeManager#getHighLevelClient(Node)}
- * before this method returns!
- *
+ * Notifies a listener that a connection to the given node was severed.
+ *
* @param node
* The node that is now disconnected
* @param throwable