java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.networkdb.kademlia.KademliaNetworkDatabaseFacade.RefreshClientLeaseSetsJob
- All Implemented Interfaces:
Job
- Enclosing class:
KademliaNetworkDatabaseFacade
Job to refresh client LeaseSets periodically. Only for client NetDB - refreshes LeaseSets we're actively using.
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final KademliaNetworkDatabaseFacadeReference to the Kademlia facade.Constructor Summary
ConstructorsConstructorDescriptionRefreshes the client lease sets periodically.Method 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
_facade
Reference to the Kademlia facade.
Constructor Details
RefreshClientLeaseSetsJob
Refreshes the client lease sets periodically.- Parameters:
ctx- the router contextfacade- the facade whose lease sets to refresh
Method Details
getName
Job name.- Returns:
- the fixed label "Refresh client LeaseSets", used to identify this job in logs and job statistics
runJob
public void runJob()Refresh the client LeaseSets we are tracking, then reschedule.