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 TypeClassDescriptionclassA JavaScript-triggered background job managed by aJavaScriptJobManager.(package private) classA JavaScript-triggered background job representing the execution of some JavaScript code.(package private) classAJavaScriptJobcreated from aFunctionobject.(package private) classAJavaScriptJobcreated from a string of code.(package private) final classA helper class for XMLHttpRequest.Subinterfaces with type arguments of type JavaScriptJob in org.htmlunit.javascript.backgroundModifier and TypeInterfaceDescriptioninterfaceA JavaScript-triggered background job managed by aJavaScriptJobManager.Fields in org.htmlunit.javascript.background declared as JavaScriptJobModifier and TypeFieldDescriptionprivate JavaScriptJobJavaScriptJobManagerImpl.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 TypeMethodDescriptionintJavaScriptJobManager.addJob(JavaScriptJob job, Page page) Adds the specified job to this job manager, assigning it an ID.intJavaScriptJobManagerImpl.addJob(JavaScriptJob job, Page page) Adds the specified job to this job manager, assigning it an ID.intBasicJavaScriptJob.compareTo(JavaScriptJob other) booleanJavaScriptJobManager.JavaScriptJobFilter.passes(JavaScriptJob job) Check if the job passes the filter.booleanJavaScriptJobManager.runSingleJob(JavaScriptJob job) Runs the provided job if it is the right time for it.booleanJavaScriptJobManagerImpl.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