java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.networkdb.kademlia.RepublishLeaseSetJob.OnRepublishFailure
- All Implemented Interfaces:
Job
- Enclosing class:
RepublishLeaseSetJob
Handles a publish timeout, retrying with floodfill verification on recurring failures, or cancelling when a newer lease set appeared locally.
Field Summary
Constructor Summary
ConstructorsMethod Summary
Methods inherited from class JobImpl
dropped, getContext, getJobId, getMadeReadyOn, getTiming, madeReady, requeue, toStringModifier and TypeMethodDescriptionvoiddropped()Default implementation does nothing.final RouterContextThe router context that this job belongs to.longgetJobId()The unique job ID for this job.longThe timestamp when this job was last made ready for execution.The timing object for this job.voidmadeReady(long now) For JobQueue only, not for external use.protected voidrequeue(long delayMs) Requeue this job to run after the specified delay.toString()
Field Details
_ls
LeaseSet that failed to publish.
Constructor Details
OnRepublishFailure
Handles a failed republish.- Parameters:
ls- the lease set that failed
Method Details
getName
runJob
public void runJob()Description copied from interface:JobActually perform the task. This call blocks until the Job is complete.verifyAndRetry
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