public abstract class JobImpl extends Object implements Job
Constructor and Description |
---|
JobImpl(RouterContext context) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
addedToQueue()
Deprecated.
As of 0.8.1, this is a noop, as it just adds classes to the log manager
class list for no good reason. Logging in jobs is almost always
set explicitly rather than by class name.
|
void |
dropped()
the router is extremely overloaded, so this job has been dropped.
|
Exception |
getAddedBy()
Deprecated.
|
RouterContext |
getContext() |
long |
getJobId()
unique id
|
long |
getMadeReadyOn() |
JobTiming |
getTiming()
Timing criteria for the task
|
void |
madeReady() |
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.
|
String |
toString() |
public JobImpl(RouterContext context)
public long getJobId()
Job
public JobTiming getTiming()
Job
public final RouterContext getContext()
void addedToQueue()
public Exception getAddedBy()
getAddedBy
in interface Job
public long getMadeReadyOn()
public void madeReady()
public void dropped()
Job
protected void requeue(long delayMs)