public interface OnSaveTask extends Cancellable
Modifier and Type | Interface and Description |
---|---|
static class |
OnSaveTask.Context
Context given to factory for production of on-save task.
|
static interface |
OnSaveTask.Factory
Factory for creation of on-save task.
|
static class |
OnSaveTask.PackageAccessor |
Modifier and Type | Method and Description |
---|---|
boolean |
cancel()
Cancel processing of the job.
|
void |
performTask()
Perform the task on the context (given to factory that produced this task).
|
void |
runLocked(Runnable run)
Perform the given runnable under a lock specific for this task.
|
void performTask()
void runLocked(@NonNull Runnable run)
OnSaveTask.performTask()
but it may
also call other tasks if there are multiple ones.
OnSaveTask.runLocked(java.lang.Runnable)
methods will be called subsequently (according to their registration order) in a nested way.run
- non-null runnable provided by the infrastructure.boolean cancel()
cancel
in interface Cancellable
Cancellable