JavaScript is disabled on your browser.
Skip navigation links
org.htmlunit.javascript.background

Class DefaultJavaScriptExecutor

    • Constructor Detail

      • DefaultJavaScriptExecutor

        public DefaultJavaScriptExecutor(WebClient webClient)
        Creates an EventLoop for the webClient.
        Parameters:
        webClient - the provided webClient
    • Method Detail

      • startThreadIfNeeded

        protected void startThreadIfNeeded()
        Starts the eventLoopThread_.
      • getThreadName

        protected String getThreadName()
        Defines the thread name; overload if needed.
        Returns:
        the name of the js executor thread
      • getJobManagerWithEarliestJob

        protected JavaScriptJobManager getJobManagerWithEarliestJob()
        Returns the JobExecutor corresponding to the earliest job.
        Returns:
        the JobExectuor with the earliest job.
      • run

        public void run()
        Runs the eventLoop.
        Specified by:
        run in interface Runnable
      • addWindow

        public void addWindow(WebWindow newWindow)
        Register a window with the eventLoop.
        Specified by:
        addWindow in interface JavaScriptExecutor
        Parameters:
        newWindow - the new web window
      • shutdown

        public void shutdown()
        Notes that this thread has been shutdown.
        Specified by:
        shutdown in interface JavaScriptExecutor
Skip navigation links

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

AltStyle によって変換されたページ (->オリジナル) /