/**
* Interface for listeners that want to be notified about node events.
- *
+ *
* @author David ‘Bombe’ Roden <bombe@freenetproject.org>
*/
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
* anything else (like deregistering as listener from it) it should retrieve
* the high-level client using {@link NodeManager#getHighLevelClient(Node)}
* before this method returns!
- *
+ *
* @param node
* The node that is now disconnected
* @param throwable