public interface JavaScriptJob extends Runnable, Comparable<JavaScriptJob>
JavaScriptJobManager
.Modifier and Type | Method and Description |
---|---|
Integer |
getId()
Returns the job ID.
|
Integer |
getPeriod()
Returns the amount of time to wait between executions of this job (may be
null ). |
long |
getTargetExecutionTime()
Returns the target execution time of the job.
|
boolean |
isExecuteAsap()
Returns
true if has to be executed ASAP. |
boolean |
isPeriodic()
Returns
true if this job executes periodically. |
void |
setId(Integer id)
Sets the job ID.
|
void |
setTargetExecutionTime(long targetExecutionTime)
Sets the target execution time of the job.
|
compareTo
Integer getId()
void setId(Integer id)
id
- the job IDlong getTargetExecutionTime()
void setTargetExecutionTime(long targetExecutionTime)
targetExecutionTime
- the new target execution time.Integer getPeriod()
null
).null
)boolean isPeriodic()
true
if this job executes periodically.true
if this job executes periodicallyboolean isExecuteAsap()
true
if has to be executed ASAP.true
if has to be executed ASAPCopyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.