java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.networkdb.kademlia.RepublishLeaseSetJob.OnRepublishFailure
All Implemented Interfaces:
Job
Enclosing class:
RepublishLeaseSetJob

private class RepublishLeaseSetJob.OnRepublishFailureextends JobImpl
Handles a publish timeout, retrying with floodfill verification on recurring failures, or cancelling when a newer lease set appeared locally.
  • Field Details

    • _ls

      private final LeaseSet _ls
      LeaseSet that failed to publish.
  • Constructor Details

    • OnRepublishFailure

      public OnRepublishFailure(LeaseSet ls)
      Handles a failed republish.
      Parameters:
      ls - the lease set that failed
  • Method Details

    • getName

      public String getName()
      Description copied from interface: Job
      Descriptive name of the task.
      Returns:
      the descriptive name of the task
    • runJob

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

      private void verifyAndRetry(LeaseSet ls)
      Verify and retry: ask the floodfill whether the lease set is published, and re-queue the republish if it is not confirmed.
      Parameters:
      ls - the lease set to confirm on the floodfill