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

Class BasicJavaScriptJob

    • Constructor Detail

      • BasicJavaScriptJob

        public BasicJavaScriptJob()
        Creates a new job instance that executes once, immediately.
    • Method Detail

      • setId

        public void setId(Integer id)
        Sets the job ID.
        Specified by:
        setId in interface JavaScriptJob
        Parameters:
        id - the job ID
      • getInitialDelay

        public int getInitialDelay()
        Returns the initial amount of time to wait before executing this job.
        Returns:
        the initial amount of time to wait before executing this job
      • getPeriod

        public Integer getPeriod()
        Returns the amount of time to wait between executions of this job (maybe null).
        Specified by:
        getPeriod in interface JavaScriptJob
        Returns:
        the amount of time to wait between executions of this job (maybe null)
      • isPeriodic

        public boolean isPeriodic()
        Returns true if this job executes periodically.
        Specified by:
        isPeriodic in interface JavaScriptJob
        Returns:
        true if this job executes periodically
      • isExecuteAsap

        public boolean isExecuteAsap()
        Returns true if this job has to be executed asap.
        Specified by:
        isExecuteAsap in interface JavaScriptJob
        Returns:
        true if this job has to be executed asap
      • getTargetExecutionTime

        public long getTargetExecutionTime()
        Returns the target execution time of the job.
        Specified by:
        getTargetExecutionTime in interface JavaScriptJob
        Returns:
        the target execution time in ms
      • setTargetExecutionTime

        public void setTargetExecutionTime(long targetExecutionTime)
        Sets the target execution time of the job.
        Specified by:
        setTargetExecutionTime in interface JavaScriptJob
        Parameters:
        targetExecutionTime - the new target execution time.
Skip navigation links

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

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