java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.client.RequestLeaseSetJob.CheckLeaseRequestStatus
- All Implemented Interfaces:
Job
- Enclosing class:
RequestLeaseSetJob
Timeout check for the LeaseSet request. Scheduled for the request's expiration plus a small random jitter so simultaneous requests from many clients do not all timeout and retry at the same instant.
Field Summary
FieldsConstructor Summary
ConstructorsMethod Summary
All MethodsMethods 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
_start
private final long _startWhen the check began.
Constructor Details
CheckLeaseRequestStatus
public CheckLeaseRequestStatus()Starts checking the lease request.
Method Details
runJob
public void runJob()Description copied from interface:JobActually perform the task. This call blocks until the Job is complete.getName