|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gargoylesoftware.htmlunit.javascript.background.JavaScriptJob
public abstract class JavaScriptJob
A JavaScript-triggered background job managed by a JavaScriptJobManager
.
Constructor Summary | |
---|---|
JavaScriptJob()
Creates a new job instance that executes once, immediately. |
|
JavaScriptJob(int initialDelay,
Integer period)
Creates a new job instance. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.lang.Runnable |
---|
run |
Constructor Detail |
---|
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)Method Detail |
---|
public void setId(Integer id)
id
- the job IDpublic Integer getId()
public int getInitialDelay()
public Integer getPeriod()
public boolean isPeriodic()
public String toString()
toString
in class Object
public int compareTo(JavaScriptJob other)
compareTo
in interface Comparable<JavaScriptJob>
public long getTargetExecutionTime()
public void setTargetExecutionTime(long targetExecutionTime)
targetExecutionTime
- the new target execution time.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |