Class RepublishLeaseSetJob
java.lang.Object
net.i2p.router.JobImpl
net.i2p.router.networkdb.kademlia.RepublishLeaseSetJob
- All Implemented Interfaces:
Job
class RepublishLeaseSetJob extends JobImpl
Run periodically for each locally created leaseSet to cause it to be republished
if the client is still connected.
-
Field Summary
Fields Modifier and Type Field Description static long
REPUBLISH_LEASESET_TIMEOUT
-
Constructor Summary
Constructors Constructor Description RepublishLeaseSetJob(RouterContext ctx, KademliaNetworkDatabaseFacade facade, Hash destHash)
-
Method Summary
Modifier and Type Method Description String
getName()
Descriptive name of the tasklong
lastPublished()
(package private) void
requeueRepublish()
void
runJob()
Actually perform the task.Methods inherited from class net.i2p.router.JobImpl
dropped, getAddedBy, getContext, getJobId, getMadeReadyOn, getTiming, madeReady, requeue, toString
-
Field Details
-
REPUBLISH_LEASESET_TIMEOUT
public static final long REPUBLISH_LEASESET_TIMEOUT- See Also:
- Constant Field Values
-
-
Constructor Details
-
RepublishLeaseSetJob
public RepublishLeaseSetJob(RouterContext ctx, KademliaNetworkDatabaseFacade facade, Hash destHash)
-
-
Method Details
-
getName
Description copied from interface:Job
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. -
requeueRepublish
void requeueRepublish() -
lastPublished
public long lastPublished()- Returns:
- last attempted publish time, or 0 if never
-