Interface InterruptableJob

  • All Superinterfaces:
    SchedulableJob

    public interface InterruptableJob
    extends SchedulableJob
    SchedulableJob implementations can implement this interface to indicate that it supports job interrupts. A single beforeInterrupt() method is invoked before Obsidian invokes Thread.interrupt() on the running job.

    Note that the job itself must still implement logic to handle the thread interrupt.

    • Method Detail

      • beforeInterrupt

        void beforeInterrupt()
        Invoked before the job is interrupted via Thread.interrupt(). Suitable for cleanup operations.