Class ScheduledCallableTask<T>

  • Type Parameters:
    T - the type of result produced by the Task
    All Implemented Interfaces:
    Task<T>, com.tangosol.io.ExternalizableLite, com.tangosol.io.pof.PortableObject, Serializable, Callable<T>

    public class ScheduledCallableTask<T>
    extends CallableTask<T>
    implements Callable<T>
    A Task that executes a Callable at scheduled time.
    Since:
    21.12
    Author:
    lh
    See Also:
    Serialized Form
    • Field Detail

      • m_ldtSubmitNanos

        protected long m_ldtSubmitNanos
        The time in nanoseconds when the task is submitted.
      • m_ltdInitialDelay

        protected Duration m_ltdInitialDelay
        The initial delay to execute the task.
    • Constructor Detail

      • ScheduledCallableTask

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

        public ScheduledCallableTask​(Callable<T> callable,
                                     Duration initialDelay)
        Constructs a ScheduledCallableTask.
        Parameters:
        callable - the callable
        initialDelay - the initial delay to execute the task