public class DumbInterruptableJob extends Object implements InterruptableJob
A dumb implementation of an InterruptableJob, for unit testing purposes.
| Constructor and Description |
|---|
DumbInterruptableJob()
Empty constructor for job initialization
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute(JobExecutionContext context)
|
void |
interrupt()
Called by the
when a user
interrupts the Job. |
public DumbInterruptableJob()
Empty constructor for job initialization
public void execute(JobExecutionContext context) throws JobExecutionException
execute in interface JobJobExecutionException - if there is an exception while executing the job.public void interrupt()
throws UnableToInterruptJobException
Called by the when a user
interrupts the SchedulerJob.
interrupt in interface InterruptableJobJobExecutionException - if there is an exception while interrupting the job.UnableToInterruptJobException - if there is an exception while interrupting the job.Copyright © 2011. All Rights Reserved.