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 Job
JobExecutionException
- if there is an exception while executing the job.public void interrupt() throws UnableToInterruptJobException
Called by the
when a user
interrupts the Scheduler
Job
.
interrupt
in interface InterruptableJob
JobExecutionException
- if there is an exception while interrupting the job.UnableToInterruptJobException
- if there is an exception while interrupting the job.Copyright © 2013. All rights reserved.