Interface SoulFireScheduler.FinalizableRunnable
- All Superinterfaces:
Runnable
- Enclosing class:
SoulFireScheduler
-
Method Summary
Modifier and TypeMethodDescriptionchainFinalizers(Runnable runnable, Runnable other) static voidvoidWe run this method either when the task is finished or when the scheduler is shutting down.withFinalizer(Runnable runnable, Runnable finalizer)
-
Method Details
-
withFinalizer
-
chainFinalizers
-
finalize
-
finalizeTask
void finalizeTask()We run this method either when the task is finished or when the scheduler is shutting down.
This should be used to clean up resources used by the task. e.g. locks or file handles.
-