Package com.biglybt.core.dht.router
Interface DHTRouterObserver
-
public interface DHTRouterObserver
Observer interface to allow monitoring of contacts in the routing table.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
added(DHTRouterContact contact)
Observer method invoked when a contact is added to the routing table.void
destroyed(DHTRouter router)
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 Detail
-
added
void added(DHTRouterContact contact)
Observer method invoked when a contact is added to the routing table.- Parameters:
contact
- the added contact
-
removed
void removed(DHTRouterContact contact)
Observer method invoked when a contact is removed from the routing table.- Parameters:
contact
- the removed contact
-
locationChanged
void locationChanged(DHTRouterContact contact)
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
void nowAlive(DHTRouterContact contact)
Observer method invoked when a contact is found to be alive.- Parameters:
contact
- the contact now alive
-
nowFailing
void nowFailing(DHTRouterContact contact)
Observer method invoked when a contact is found to be failing.- Parameters:
contact
- the contact now failing
-
destroyed
void destroyed(DHTRouter router)
Router is not longer in use- Parameters:
router
-
-
-