Java 类org.quartz.DisallowConcurrentExecution 实例源码

项目:redis-quartz    文件:RedisJobStore.java   
@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;
}
项目:lams    文件:JobDetailImpl.java   
/**
 * @return whether the associated Job class carries the {@link DisallowConcurrentExecution} annotation.
 */
public boolean isConcurrentExectionDisallowed() {

    return ClassUtils.isAnnotationPresent(jobClass, DisallowConcurrentExecution.class);
}
项目:jooby    文件:MethodJobDetail.java   
@Override
public boolean isConcurrentExectionDisallowed() {
  return owner.getAnnotation(DisallowConcurrentExecution.class) != null;
}
项目:quartz-glass    文件:JobBean.java   
public static boolean isDisallowConcurrentExecution(Class<?> jobClass) {
    return getAnnotation(jobClass, DisallowConcurrentExecution.class) != null;
}