JobDetail job = newJob(HelloJob.class).withIdentity("job1", "group1").build();
Trigger trigger = newTrigger().withIdentity("trigger1", "group1").startAt(runTime).build();
如上代码
对于JobDetail,"group1"有什么用处?在什么情况下需要用到它?
对于Trigger,"group1"有什么用处?在什么情况下需要用到它?
The comments of the Schedule interface in the org.quartz package state:
It can be seen that group is used for classification and is equivalent to a namespace.
Also, what is the use of analyzing group from equals. For example, do you judge that two triggers or jobs are the same? For example, trigger, in the SimpleTriggerImpl class
Then, this equals method is the equals method in the super class Key, and group is used here:
So, group is actually a classification, which means command space.