Package arez

Class SchedulerLock

java.lang.Object
arez.SchedulerLock
All Implemented Interfaces:
Disposable

public final class SchedulerLock extends Object implements Disposable
A lock that stops the scheduler from running tasks until the lock is released.
  • Method Details

    • dispose

      public void dispose()
      Description copied from interface: Disposable
      Dispose the element. See Disposable for a description of the implications.
      Specified by:
      dispose in interface Disposable
    • isDisposed

      public boolean isDisposed()
      Description copied from interface: Disposable
      Return true if dispose() has been called on object.
      Specified by:
      isDisposed in interface Disposable
      Returns:
      true if dispose has been called.