我是石英新手。我发现了@DisallowConcurrentExecutionquartz库提供的注释,文档说:
'An annotation that marks a {@link Job} class as one that must not have multiple instances executed concurrently (where instance is based-upon a {@link JobDetail} definition - or in other words based upon a {@link JobKey}).'
则DisallowConcurrentExecution.java写为:
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface DisallowConcurrentExecution {
}
但是,我找不到实际处理同一作业不并发执行的实现。这对我来说是新的,所以有人可以帮助我解释内部实现逻辑。
我试图查找用法,但只在课堂上找到了它MethodInvokingJobDetailFactoryBean.java
泛舟湖上清波郎朗
相关分类