文件如下: The keys of Jobs and Triggers (JobKey and TriggerKey) allow them to be placed into 'groups' which can be useful for organizing your jobs and triggers into categories such as “reporting ” name portion of the key of a job or trigger must be unique within the group - or in other words, the complete key (or identifier) of a job or trigger is the compound of the name and group. 簡單說,name+group才是組成一個唯一key,透過key可以更新、停止任務等等。 寫個簡單的demo:
文件如下:
The keys of Jobs and Triggers (JobKey and TriggerKey) allow them to be placed into 'groups' which can be useful for organizing your jobs and triggers into categories such as “reporting ” name portion of the key of a job or trigger must be unique within the group - or in other words, the complete key (or identifier) of a job or trigger is the compound of the name and group.
簡單說,name+group才是組成一個唯一key,透過key可以更新、停止任務等等。
寫個簡單的demo:
group的其他應用:
可以透過groupname來取得其下的所有jobkey