Class SearchJob.FailedJob

  • All Implemented Interfaces:
    Job
    Enclosing class:
    SearchJob

    protected class SearchJob.FailedJob
    extends JobImpl
    Called when a particular peer failed to respond before the timeout was reached, or if the peer could not be contacted at all.
    • Constructor Detail

      • FailedJob

        public FailedJob​(RouterContext enclosingContext,
                         RouterInfo peer,
                         boolean penalizePeer)
        Allow the choice as to whether failed searches should count against the peer (such as if we search for a random key)
    • Method Detail

      • runJob

        public void runJob()
        Description copied from interface: Job
        Actually perform the task. This call blocks until the Job is complete.
      • getName

        public String getName()
        Description copied from interface: Job
        Descriptive name of the task