Class HandleFloodfillDatabaseLookupMessageJob

  • All Implemented Interfaces:
    Job

    public class HandleFloodfillDatabaseLookupMessageJob
    extends HandleDatabaseLookupMessageJob
    Handle a lookup for a key received from a remote peer. Needs to be implemented to send back replies, etc
    • Method Detail

      • answerAllQueries

        protected boolean answerAllQueries()
        Overrides:
        answerAllQueries in class HandleDatabaseLookupMessageJob
        Returns:
        are we floodfill We don't really answer all queries if this is true, since floodfills don't have the whole keyspace any more, see ../HTLMJ for discussion
      • sendClosest

        protected void sendClosest​(Hash key,
                                   Set<Hash> routerInfoSet,
                                   Hash toPeer,
                                   TunnelId replyTunnel)
        We extend this here to send our routerInfo back as well, if we are not floodfill. This gets the word out to routers that we are no longer floodfill, so they will stop bugging us.
        Overrides:
        sendClosest in class HandleDatabaseLookupMessageJob