public abstract class JavaScriptJob extends Object implements Runnable, Comparable<JavaScriptJob>
JavaScriptJobManager
.Constructor and Description |
---|
JavaScriptJob()
Creates a new job instance that executes once, immediately.
|
JavaScriptJob(int initialDelay,
Integer period)
Creates a new job instance.
|
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 (may be null).
|
long |
getTargetExecutionTime()
Returns the target execution time of the job.
|
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 JavaScriptJob()
public JavaScriptJob(int initialDelay, Integer period)
initialDelay
- the initial amount of time to wait before executing this jobperiod
- the amount of time to wait between executions of this job (may be null)public void setId(Integer id)
id
- the job IDpublic Integer getId()
public int getInitialDelay()
public Integer getPeriod()
public boolean isPeriodic()
public int compareTo(JavaScriptJob other)
compareTo
in interface Comparable<JavaScriptJob>
public long getTargetExecutionTime()
public void setTargetExecutionTime(long targetExecutionTime)
targetExecutionTime
- the new target execution time.Copyright © 2002–2013 Gargoyle Software Inc.. All rights reserved.