Class ScheduledDirectTask

  • All Implemented Interfaces:
    Disposable, SchedulerRunnableIntrospection, java.io.Serializable, java.util.concurrent.Callable<java.lang.Void>

    public final class ScheduledDirectTask
    extends AbstractDirectTask
    implements java.util.concurrent.Callable<java.lang.Void>
    A Callable to be submitted to an ExecutorService that runs a Runnable action and manages completion/cancellation.
    Since:
    2.0.8
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ScheduledDirectTask​(java.lang.Runnable runnable, boolean interruptOnCancel)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Void call()  
      • Methods inherited from class java.util.concurrent.atomic.AtomicReference

        accumulateAndGet, compareAndExchange, compareAndExchangeAcquire, compareAndExchangeRelease, compareAndSet, get, getAcquire, getAndAccumulate, getAndSet, getAndUpdate, getOpaque, getPlain, lazySet, set, setOpaque, setPlain, setRelease, updateAndGet, weakCompareAndSet, weakCompareAndSetAcquire, weakCompareAndSetPlain, weakCompareAndSetRelease, weakCompareAndSetVolatile
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ScheduledDirectTask

        public ScheduledDirectTask​(java.lang.Runnable runnable,
                                   boolean interruptOnCancel)
    • Method Detail

      • call

        public java.lang.Void call()
        Specified by:
        call in interface java.util.concurrent.Callable<java.lang.Void>