public abstract class BasicJavaScriptJob extends Object implements JavaScriptJob
JavaScriptJobManager.| Constructor and Description | 
|---|
| BasicJavaScriptJob()Creates a new job instance that executes once, immediately. | 
| Modifier and Type | Method and Description | 
|---|---|
| int | compareTo(JavaScriptJob other) | 
| Integer | getId()Returns the job ID. | 
| int | getInitialDelay()Returns the initial amount of time to wait before executing this job. | 
| Integer | getPeriod()Returns the amount of time to wait between executions of this job (maybe  null). | 
| long | getTargetExecutionTime()Returns the target execution time of the job. | 
| boolean | isExecuteAsap()Returns  trueif this job has to be executed asap. | 
| boolean | isPeriodic()Returns  trueif this job executes periodically. | 
| void | setId(Integer id)Sets the job ID. | 
| void | setTargetExecutionTime(long targetExecutionTime)Sets the target execution time of the job. | 
| String | toString() | 
public BasicJavaScriptJob()
public void setId(Integer id)
setId in interface JavaScriptJobid - the job IDpublic Integer getId()
getId in interface JavaScriptJobpublic int getInitialDelay()
public Integer getPeriod()
null).getPeriod in interface JavaScriptJobnull)public boolean isPeriodic()
true if this job executes periodically.isPeriodic in interface JavaScriptJobtrue if this job executes periodicallypublic boolean isExecuteAsap()
true if this job has to be executed asap.isExecuteAsap in interface JavaScriptJobtrue if this job has to be executed asappublic int compareTo(JavaScriptJob other)
compareTo in interface Comparable<JavaScriptJob>public long getTargetExecutionTime()
getTargetExecutionTime in interface JavaScriptJobpublic void setTargetExecutionTime(long targetExecutionTime)
setTargetExecutionTime in interface JavaScriptJobtargetExecutionTime - the new target execution time.Copyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.