public abstract class AbstractScheduledLockedJob extends org.springframework.scheduling.quartz.QuartzJobBean
JobLockService. It makes the cluster aware locking of the job transparent to the implementation. On the job's spring
JobExecutionContextit will still always have to be passed as parameter the
jobLockService. The name to be used for locking of the job is optional, if none is passed a name will be composed using the simple name of the implementation class. In general if it may make sense to have more than one job setup using the same class you should always use a different name on each
JobExecutionContextto differentiate the jobs, unless you want the lock to be shared between the different instances. The only method to be implemented when extending this class is
|Constructor and Description|
|Modifier and Type||Method and Description|
This is the method that should be implemented by any extension of the abstract class.
protected final void executeInternal(org.quartz.JobExecutionContext jobContext) throws org.quartz.JobExecutionException
public abstract void executeJob(org.quartz.JobExecutionContext jobContext) throws org.quartz.JobExecutionException
jobContext- context of the execution for retrieving services, etc
org.quartz.JobExecutionException- if a job fails to execute
Copyright © 2005–2017 Alfresco Software. All rights reserved.