Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update src/groovy/grails/plugin/quartz2/SimpleJobDetail.groovy

Correcting Exection to Execution.  Sustains legacy implementations of Exection typo.
  • Loading branch information...
commit 63999f14ac477f9d289ba6d5769f1672d2f07317 1 parent af2fd45
@blorenz blorenz authored
Showing with 16 additions and 1 deletion.
  1. +16 −1 src/groovy/grails/plugin/quartz2/SimpleJobDetail.groovy
View
17 src/groovy/grails/plugin/quartz2/SimpleJobDetail.groovy
@@ -136,6 +136,13 @@ class SimpleJobDetail implements Cloneable, java.io.Serializable, JobDetail {
* @return whether the associated Job class carries the {@link DisallowConcurrentExecution} annotation.
*/
boolean isConcurrentExectionDisallowed() {
+ return isConcurrentExecutionDisallowed();
+ }
+
+ /**
+ * @return whether the associated Job class carries the {@link DisallowConcurrentExecution} annotation.
+ */
+ boolean isConcurrentExecutionDisallowed() {
if(!concurrent){
return true
} else{
@@ -144,11 +151,19 @@ class SimpleJobDetail implements Cloneable, java.io.Serializable, JobDetail {
}
}
+
/**
* @return whether the associated Job class carries the {@link DisallowConcurrentExecution} annotation.
*/
void setConcurrentExectionDisallowed(boolean singleThreaded) {
+ setConcurrentExecutionDisallowed(singleThreaded)
+ }
+
+ /**
+ * @return whether the associated Job class carries the {@link DisallowConcurrentExecution} annotation.
+ */
+ void setConcurrentExecutionDisallowed(boolean singleThreaded) {
concurrent = !singleThreaded
}
@@ -171,7 +186,7 @@ class SimpleJobDetail implements Cloneable, java.io.Serializable, JobDetail {
@Override
String toString() {
return "JobDetail '${key.group}.${key.name}' : jobClass: '${jobClass?.name}'"
- + " concurrentExectionDisallowed: " + isConcurrentExectionDisallowed()
+ + " concurrentExecutionDisallowed: " + isConcurrentExecutionDisallowed()
+ " persistJobDataAfterExecution: " + isPersistJobDataAfterExecution()
+ " isDurable: " + isDurable() + " requestsRecovers: " + requestsRecovery();
}
Please sign in to comment.
Something went wrong with that request. Please try again.