com.gargoylesoftware.htmlunit.javascript.background
Interface JavaScriptJob

All Superinterfaces:
Comparable<JavaScriptJob>, Runnable

public interface JavaScriptJob
extends Runnable, Comparable<JavaScriptJob>

A JavaScript-triggered background job managed by a JavaScriptJobManager.

Version:
$Revision: 8931 $
Author:
Daniel Gredler, Amit Manjhi, Ronald Brill

Method Summary
 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.
 
Methods inherited from interface java.lang.Runnable
run
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getId

Integer getId()
Returns the job ID.

Returns:
the job ID

setId

void setId(Integer id)
Sets the job ID.

Parameters:
id - the job ID

getTargetExecutionTime

long getTargetExecutionTime()
Returns the target execution time of the job.

Returns:
the target execution time in ms

setTargetExecutionTime

void setTargetExecutionTime(long targetExecutionTime)
Sets the target execution time of the job.

Parameters:
targetExecutionTime - the new target execution time.

getPeriod

Integer getPeriod()
Returns the amount of time to wait between executions of this job (may be null).

Returns:
the amount of time to wait between executions of this job (may be null)

isPeriodic

boolean isPeriodic()
Returns true if this job executes periodically.

Returns:
true if this job executes periodically

isExecuteAsap

boolean isExecuteAsap()
Returns true if has to be executed ASAP.

Returns:
true if has to be executed ASAP


Copyright © 2002–2014 Gargoyle Software Inc.. All rights reserved.