Package arez
Class SchedulerLock
java.lang.Object
arez.SchedulerLock
- All Implemented Interfaces:
Disposable
A lock that stops the scheduler from running tasks until the lock is released.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Dispose the element.booleanReturn true if dispose() has been called on object.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface arez.Disposable
isNotDisposed
-
Method Details
-
dispose
Description copied from interface:DisposableDispose the element. SeeDisposablefor a description of the implications.- Specified by:
disposein interfaceDisposable
-
isDisposed
Description copied from interface:DisposableReturn true if dispose() has been called on object.- Specified by:
isDisposedin interfaceDisposable- Returns:
- true if dispose has been called.
-