@PersistJobDataAfterExecution @DisallowConcurrentExecution public class ColorJob extends Object implements Job
This is just a simple job that receives parameters and maintains state
Modifier and Type | Field and Description |
---|---|
static String |
EXECUTION_COUNT |
static String |
FAVORITE_COLOR |
Constructor and Description |
---|
ColorJob()
Empty constructor for job initialization
|
public static final String FAVORITE_COLOR
public static final String EXECUTION_COUNT
public ColorJob()
Empty constructor for job initialization
Quartz requires a public empty constructor so that the scheduler can instantiate the class whenever it needs.
public void execute(JobExecutionContext context) throws JobExecutionException
execute
in interface Job
JobExecutionException
- if there is an exception while executing the job.Copyright © 2012. All Rights Reserved.