Interface DHTRouterObserver
public interface DHTRouterObserver
Observer interface to allow monitoring of contacts in the routing table.
-
Method Summary
Modifier and TypeMethodDescriptionvoidadded(DHTRouterContact contact) Observer method invoked when a contact is added to the routing table.voidRouter is not longer in usevoidlocationChanged(DHTRouterContact contact) Observer method invoked when a contact changes between a bucket entry and a replacement in the routing table.voidnowAlive(DHTRouterContact contact) Observer method invoked when a contact is found to be alive.voidnowFailing(DHTRouterContact contact) Observer method invoked when a contact is found to be failing.voidremoved(DHTRouterContact contact) Observer method invoked when a contact is removed from the routing table.
-
Method Details
-
added
Observer method invoked when a contact is added to the routing table.- Parameters:
contact- the added contact
-
removed
Observer method invoked when a contact is removed from the routing table.- Parameters:
contact- the removed contact
-
locationChanged
Observer method invoked when a contact changes between a bucket entry and a replacement in the routing table.- Parameters:
contact- the contact that changed location
-
nowAlive
Observer method invoked when a contact is found to be alive.- Parameters:
contact- the contact now alive
-
nowFailing
Observer method invoked when a contact is found to be failing.- Parameters:
contact- the contact now failing
-
destroyed
-