Class ExecutorScheduler.ExecutorWorker.BooleanRunnable

  • All Implemented Interfaces:
    Disposable, java.io.Serializable, java.lang.Runnable
    Enclosing class:
    ExecutorScheduler.ExecutorWorker

    static final class ExecutorScheduler.ExecutorWorker.BooleanRunnable
    extends java.util.concurrent.atomic.AtomicBoolean
    implements java.lang.Runnable, Disposable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.Runnable actual  
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      BooleanRunnable​(java.lang.Runnable actual)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void dispose()
      Dispose the resource, the operation should be idempotent.
      boolean isDisposed()
      Returns true if this resource has been disposed.
      void run()  
      • Methods inherited from class java.util.concurrent.atomic.AtomicBoolean

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

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

      • actual

        final java.lang.Runnable actual
    • Constructor Detail

      • BooleanRunnable

        BooleanRunnable​(java.lang.Runnable actual)
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • dispose

        public void dispose()
        Description copied from interface: Disposable
        Dispose the resource, the operation should be idempotent.
        Specified by:
        dispose in interface Disposable
      • isDisposed

        public boolean isDisposed()
        Description copied from interface: Disposable
        Returns true if this resource has been disposed.
        Specified by:
        isDisposed in interface Disposable
        Returns:
        true if this resource has been disposed