Package com.carfey.ops.job
Interface InterruptableJob
-
- All Superinterfaces:
SchedulableJob
public interface InterruptableJob extends SchedulableJob
SchedulableJobimplementations can implement this interface to indicate that it supports job interrupts. A singlebeforeInterrupt()method is invoked before Obsidian invokesThread.interrupt()on the running job.Note that the job itself must still implement logic to handle the thread interrupt.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.carfey.ops.job.SchedulableJob
SchedulableJob.AsyncJob, SchedulableJob.Initializable, SchedulableJob.InitializableChainAnnotation, SchedulableJob.InitializableChainConditionAnnotation, SchedulableJob.RepeatableInitializableAnnotation, SchedulableJob.Schedulable, SchedulableJob.ScheduledRun
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidbeforeInterrupt()Invoked before the job is interrupted viaThread.interrupt().-
Methods inherited from interface com.carfey.ops.job.SchedulableJob
execute
-
-