Uses of Interface
org.htmlunit.javascript.background.JavaScriptJob
Packages that use JavaScriptJob
Package
Description
Classes relating to background JavaScript execution, which is usually triggered via
setTimeout()
or setInterval()
.Implementations of the Web Workers JavaScript host objects - users of HtmlUnit shouldn't
need anything in this package.
-
Uses of JavaScriptJob in org.htmlunit.javascript.background
Classes in org.htmlunit.javascript.background that implement JavaScriptJobModifier and TypeClassDescriptionclass
A JavaScript-triggered background job managed by aJavaScriptJobManager
.(package private) class
A JavaScript-triggered background job representing the execution of some JavaScript code.(package private) class
AJavaScriptJob
created from aFunction
object.(package private) class
AJavaScriptJob
created from a string of code.(package private) final class
A helper class for XMLHttpRequest.Fields in org.htmlunit.javascript.background declared as JavaScriptJobModifier and TypeFieldDescriptionprivate JavaScriptJob
JavaScriptJobManagerImpl.currentlyRunningJob_
Fields in org.htmlunit.javascript.background with type parameters of type JavaScriptJobModifier and TypeFieldDescriptionprivate PriorityQueue
<JavaScriptJob> JavaScriptJobManagerImpl.scheduledJobsQ_
Queue of jobs that are scheduled to run.Methods in org.htmlunit.javascript.background that return JavaScriptJobModifier and TypeMethodDescriptionBackgroundJavaScriptFactory.createJavaScriptJob
(int initialDelay, Integer period, Runnable runnable) Creates a new job.BackgroundJavaScriptFactory.createJavaScriptJob
(int initialDelay, Integer period, String label, WebWindow window, String script) Creates a new JavaScript execution job, where the JavaScript code to execute is a string.BackgroundJavaScriptFactory.createJavascriptXMLHttpRequestJob
(org.htmlunit.corejs.javascript.ContextFactory contextFactory, org.htmlunit.corejs.javascript.ContextAction<Object> action) Creates a new job for XMLHttpRequestProcessing.JavaScriptJobManager.getEarliestJob()
Gets the earliest job for this manager.JavaScriptJobManager.getEarliestJob
(JavaScriptJobManager.JavaScriptJobFilter filter) Gets the earliest job for this manager.JavaScriptJobManagerImpl.getEarliestJob()
Gets the earliest job for this manager.JavaScriptJobManagerImpl.getEarliestJob
(JavaScriptJobManager.JavaScriptJobFilter filter) Gets the earliest job for this manager.Methods in org.htmlunit.javascript.background with parameters of type JavaScriptJobModifier and TypeMethodDescriptionint
JavaScriptJobManager.addJob
(JavaScriptJob job, Page page) Adds the specified job to this job manager, assigning it an ID.int
JavaScriptJobManagerImpl.addJob
(JavaScriptJob job, Page page) Adds the specified job to this job manager, assigning it an ID.int
BasicJavaScriptJob.compareTo
(JavaScriptJob other) boolean
JavaScriptJobManager.JavaScriptJobFilter.passes
(JavaScriptJob job) Check if the job passes the filter.boolean
JavaScriptJobManager.runSingleJob
(JavaScriptJob job) Runs the provided job if it is the right time for it.boolean
JavaScriptJobManagerImpl.runSingleJob
(JavaScriptJob givenJob) Runs the provided job if it is the right time for it. -
Uses of JavaScriptJob in org.htmlunit.javascript.host.worker
Classes in org.htmlunit.javascript.host.worker that implement JavaScriptJob