Commits

Anonymous committed 6a91196

change priority of example trigger to discourage use of negative priorities.

git-svn-id: http://svn.opensymphony.com/svn/quartz/trunk@83169f7d36a-ea1c-0410-88ea-9fd03e4c9665

  • Participants
  • Parent commits d020124

Comments (0)

Files changed (1)

File examples/src/java/org/quartz/examples/example14/PriorityExample.java

         Calendar startTime = Calendar.getInstance();
         startTime.add(Calendar.SECOND, 5);
         
-        // First trigger has priority of -5, and will repeat after 5 seconds
+        // First trigger has priority of 1, and will repeat after 5 seconds
         SimpleTrigger trigger1 = 
             new SimpleTrigger("PriorityNeg5Trigger5SecondRepeat", null, startTime.getTime(), null, 1, 5L * 1000L);
-        trigger1.setPriority(-5);
+        trigger1.setPriority(1);
         trigger1.setJobName("TriggerEchoJob");
 
         // Second trigger has default priority of 5, and will repeat after 10 seconds