Package com.biglybt.core.dht.router
Interface DHTRouterObserver
public interface DHTRouterObserver
Observer interface to allow monitoring of contacts in the routing table.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
added
(DHTRouterContact contact) Observer method invoked when a contact is added to the routing table.void
Router is not longer in usevoid
locationChanged
(DHTRouterContact contact) Observer method invoked when a contact changes between a bucket entry and a replacement in the routing table.void
nowAlive
(DHTRouterContact contact) Observer method invoked when a contact is found to be alive.void
nowFailing
(DHTRouterContact contact) Observer method invoked when a contact is found to be failing.void
removed
(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
Router is not longer in use- Parameters:
router
-
-