Interface JavaScriptJob

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Integer getId()
      Returns the job ID.
      java.lang.Integer getPeriod()
      Returns the amount of time to wait between executions of this job (may be null).
      long getTargetExecutionTime()
      Returns the target execution time of the job.
      boolean isExecuteAsap()
      Returns true if has to be executed ASAP.
      boolean isPeriodic()
      Returns true if this job executes periodically.
      void setId​(java.lang.Integer id)
      Sets the job ID.
      void setTargetExecutionTime​(long targetExecutionTime)
      Sets the target execution time of the job.
      • Methods inherited from interface java.lang.Comparable

        compareTo
      • Methods inherited from interface java.lang.Runnable

        run
    • Method Detail

      • getId

        java.lang.Integer getId()
        Returns the job ID.
        Returns:
        the job ID
      • setId

        void setId​(java.lang.Integer id)
        Sets the job ID.
        Parameters:
        id - the job ID
      • getTargetExecutionTime

        long getTargetExecutionTime()
        Returns the target execution time of the job.
        Returns:
        the target execution time in ms
      • setTargetExecutionTime

        void setTargetExecutionTime​(long targetExecutionTime)
        Sets the target execution time of the job.
        Parameters:
        targetExecutionTime - the new target execution time.
      • getPeriod

        java.lang.Integer getPeriod()
        Returns the amount of time to wait between executions of this job (may be null).
        Returns:
        the amount of time to wait between executions of this job (may be null)
      • isPeriodic

        boolean isPeriodic()
        Returns true if this job executes periodically.
        Returns:
        true if this job executes periodically
      • isExecuteAsap

        boolean isExecuteAsap()
        Returns true if has to be executed ASAP.
        Returns:
        true if has to be executed ASAP