Class ScheduledRunnableTask

    • Field Detail

      • m_initialDelay

        protected Duration m_initialDelay
        The initial delay to execute the task.
      • m_ldtExecuteNanos

        protected long m_ldtExecuteNanos
        The time in nanoseconds to execute the task.
      • m_period

        protected Duration m_period
        The period between successive executions.
      • m_delay

        protected Duration m_delay
        The delay to start the next execution after the completion of the current execution.
    • Constructor Detail

      • ScheduledRunnableTask

        public ScheduledRunnableTask()
        Constructs a ScheduledRunnableTask (required for serialization).
      • ScheduledRunnableTask

        public ScheduledRunnableTask​(Runnable runnable,
                                     Duration initialDelay,
                                     Duration period,
                                     Duration delay)
        Constructs a RunnableTask.
        Parameters:
        runnable - the runnable
        initialDelay - the initial delay
        period - the period between successive execution
        delay - the delay to start the next execution after the completion of the current execution