Interface DHTRouterObserver


public interface DHTRouterObserver
Observer interface to allow monitoring of contacts in the routing table.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Observer method invoked when a contact is added to the routing table.
    void
    Router is not longer in use
    void
    Observer method invoked when a contact changes between a bucket entry and a replacement in the routing table.
    void
    Observer method invoked when a contact is found to be alive.
    void
    Observer method invoked when a contact is found to be failing.
    void
    Observer method invoked when a contact is removed from the routing table.
  • Method Details

    • 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 -