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()
boolean isPeriodic()
boolean isExecuteAsap()
Copyright © 2002–2015 Gargoyle Software Inc.. All rights reserved.