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().-
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.Subinterfaces with type arguments of type JavaScriptJob in org.htmlunit.javascript.backgroundModifier and TypeInterfaceDescriptioninterfaceA JavaScript-triggered background job managed by aJavaScriptJobManager.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.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.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.