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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dropped()
the router is extremely overloaded, so this job has been dropped.Deprecated.final RouterContext
long
getJobId()
unique idlong
Timing criteria for the taskvoid
Deprecated.use madeReady(long)void
madeReady
(long now) For JobQueue only, not for external useprotected 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.toString()
-
Constructor Details
-
JobImpl
-
-
Method Details
-
getJobId
public long getJobId()Description copied from interface:Job
unique id -
getTiming
Description copied from interface:Job
Timing criteria for the task -
getContext
-
toString
-
getAddedBy
Deprecated.- Specified by:
getAddedBy
in 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:Job
the 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.
-