RAMJobStore用于存儲(chǔ)內(nèi)存中的調(diào)度信息(jobs,Triggers和日歷)。RAMJobStore快速輕便,但是當(dāng)進(jìn)程終止時(shí),所有調(diào)度信息都會(huì)丟失。
通過設(shè)置“org.quartz.jobStore.class”屬性來選擇RAMJobStore:
將計(jì)劃程序的JobStore設(shè)置為RAMJobStore
org.quartz.jobStore.class = org.quartz.simpl.RAMJobStore
可以使用以下屬性調(diào)整RAMJobStore:
Property Name | Required | Type | Default Value |
---|---|---|---|
org.quartz.jobStore.misfireThreshold | no | int | 60000 |
org.quartz.jobStore.misfireThreshold
在被認(rèn)為“misfired”之前,調(diào)度程序?qū)ⅰ皌olerate”一個(gè)Triggers將其下一個(gè)啟動(dòng)時(shí)間通過的毫秒數(shù)。默認(rèn)值(如果您在配置中未輸入此屬性)為60000(60秒)。org.quartz.jobStore.misfireThreshold
更多建議: