org.quartz.DisallowConcurrentExecution Java Examples
The following examples show how to use
org.quartz.DisallowConcurrentExecution.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RedisJobStore.java From redis-quartz with MIT License | 5 votes |
@SuppressWarnings("unchecked") private boolean isJobConcurrentExectionDisallowed(String jobClassName) { boolean jobConcurrentExectionDisallowed = false; try { Class<Job> jobClass = (Class<Job>) loadHelper.getClassLoader().loadClass(jobClassName); jobConcurrentExectionDisallowed = ClassUtils.isAnnotationPresent(jobClass, DisallowConcurrentExecution.class); } catch (Exception ex) { log.error("could not determine whether class: " + jobClassName + " is JobConcurrentExectionDisallowed annotated"); } return jobConcurrentExectionDisallowed; }
Example #2
Source File: JobDetailImpl.java From lams with GNU General Public License v2.0 | 4 votes |
/** * @return whether the associated Job class carries the {@link DisallowConcurrentExecution} annotation. */ public boolean isConcurrentExectionDisallowed() { return ClassUtils.isAnnotationPresent(jobClass, DisallowConcurrentExecution.class); }
Example #3
Source File: JobBean.java From quartz-glass with Apache License 2.0 | 4 votes |
public static boolean isDisallowConcurrentExecution(Class<?> jobClass) { return getAnnotation(jobClass, DisallowConcurrentExecution.class) != null; }