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
true if this job 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.
|
String |
toString() |
public BasicJavaScriptJob()
public void setId(Integer id)
setId
in interface JavaScriptJob
id
- the job IDpublic Integer getId()
getId
in interface JavaScriptJob
public int getInitialDelay()
public Integer getPeriod()
null
).getPeriod
in interface JavaScriptJob
null
)public boolean isPeriodic()
true
if this job executes periodically.isPeriodic
in interface JavaScriptJob
true
if this job executes periodicallypublic boolean isExecuteAsap()
true
if this job has to be executed asap.isExecuteAsap
in interface JavaScriptJob
true
if this job has to be executed asappublic int compareTo(JavaScriptJob other)
compareTo
in interface Comparable<JavaScriptJob>
public long getTargetExecutionTime()
getTargetExecutionTime
in interface JavaScriptJob
public void setTargetExecutionTime(long targetExecutionTime)
setTargetExecutionTime
in interface JavaScriptJob
targetExecutionTime
- the new target execution time.Copyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.