Package net.i2p.router
Class JobImpl
java.lang.Object
net.i2p.router.JobImpl
- All Implemented Interfaces:
Job
- Direct Known Subclasses:
Analysis,BootCommSystemJob,BootNetworkDbJob,BootPeerManagerJob,BuildTrustedLinksJob,CreateRouterInfoJob,CreateSessionJob,ExpireJob,ExpireLeasesJob,ExpireRoutersJob,ExploreKeySelectorJob,FloodfillMonitorJob,FloodfillRouterInfoFloodJob,FloodfillVerifyStoreJob,FloodOnlyLookupMatchJob,FloodOnlyLookupTimeoutJob,FloodSearchJob,GetBidsJob,HandleDatabaseLookupMessageJob,HandleFloodfillDatabaseStoreMessageJob,HandleGarlicMessageJob,IterativeLookupJob,IterativeTimeoutJob,LoadClientAppsJob,LoadRouterInfoJob,LookupDestJob,MessageReceivedJob,OutboundClientMessageOneShotJob,PeerTestJob,PersistRouterInfoJob,PublishLocalRouterInfoJob,ReadConfigJob,RebuildRouterInfoJob,RefreshRoutersJob,ReportAbuseJob,RepublishLeaseSetJob,RequestLeaseSetJob,SearchJob,SearchJob.FailedJob,SearchReplyJob,SearchUpdateReplyFoundJob,SendMessageDirectJob,SingleLookupJob,StartAcceptingClientsJob,StartExplorersJob,StartupJob,StoreJob,TestJob,UpdateRoutingKeyModifierJob
Base implementation of a Job
For use by the router only. Not to be used by applications or plugins.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddropped()the router is extremely overloaded, so this job has been dropped.Deprecated.final RouterContextlonggetJobId()unique idlongTiming criteria for the taskvoidDeprecated.use madeReady(long)voidmadeReady(long now) For JobQueue only, not for external useprotected voidrequeue(long delayMs) Warning - only call this from runJob() or if Job is not already queued, or else it gets the job queue out of order.toString()
-
Constructor Details
-
JobImpl
-
-
Method Details
-
getJobId
public long getJobId()Description copied from interface:Jobunique id -
getTiming
Description copied from interface:JobTiming criteria for the task -
getContext
-
toString
-
getAddedBy
Deprecated.- Specified by:
getAddedByin interfaceJob- Returns:
- null always
-
getMadeReadyOn
public long getMadeReadyOn() -
madeReady
Deprecated.use madeReady(long)Deprecated to avoid JobQueue deadlocks -
madeReady
public void madeReady(long now) For JobQueue only, not for external use- Since:
- 0.9.55
-
dropped
public void dropped()Description copied from interface:Jobthe router is extremely overloaded, so this job has been dropped. if for some reason the job *must* do some cleanup / requeueing of other tasks, it should do so here. -
requeue
protected void requeue(long delayMs) Warning - only call this from runJob() or if Job is not already queued, or else it gets the job queue out of order.
-