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 TypeMethodDescriptionvoid
dispose()
Dispose the element.boolean
Return 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, wait
Methods inherited from interface arez.Disposable
isNotDisposed
-
Method Details
-
dispose
Description copied from interface:Disposable
Dispose the element. SeeDisposable
for a description of the implications.- Specified by:
dispose
in interfaceDisposable
-
isDisposed
Description copied from interface:Disposable
Return true if dispose() has been called on object.- Specified by:
isDisposed
in interfaceDisposable
- Returns:
- true if dispose has been called.
-