src/java/org/pifan/schedule/PifanJob.java
/**
     * Attempt to interrupt an already running Quartz job.
     * <p>
     * This method will be called on the same thread that originally called the
     * QuartzPoller's <code>unregisterWorker</code> method.
     * 
     * @see org.quartz.InterruptableJob#interrupt()
     */
Attempt to interrupt an already running Quartz job.

This method will be called on the same thread that originally called the
QuartzPoller's unregisterWorker method.


Attempt to interrupt an already running Quartz job . This method will be called on the same thread that originally called the QuartzPoller ' s unregisterWorker method .
public void interrupt() throws UnableToInterruptJobException {
        logger.debug("Received an 'interrupt' callback [pollerName: " + this.pollerName + ", workerName: "
                + this.workerName + "]");
        this.stopFlag.set(true);
        /*
         * Attempt to interrupt the running thread. 
         * 
         * Keep in mind that it's up to the underlying code being run to honor the
         * thread's interrupted status and stop as needed.
         */
        Thread thread = this.runningThread.getAndSet(null);
        if (thread != null) {
            thread.interrupt();
        }
    }
public void interrupt ( ) throws UnableToInterruptJobException { logger . debug ( "Received an 'interrupt' callback [pollerName: " + this . pollerName + ", workerName: " + this . workerName + "]" ) ; this . stopFlag . set ( true ) ; /*
         * Attempt to interrupt the running thread. 
         * 
         * Keep in mind that it's up to the underlying code being run to honor the
         * thread's interrupted status and stop as needed.
         */ Thread thread = this . runningThread . getAndSet ( null ) ; if ( thread != null ) { thread . interrupt ( ) ; } }
Attempt to interrupt an already running Quartz job.
Attempt to interrupt an already running Quartz job .