×
Quartz快速入门指南

Quartz教程

使用QuartzQuartz API,Jobs和TriggersJob与JobDetail介绍TriggersSimple TriggerCronTriggerTrigger和JobListenersSchedulerListenersJob Stores配置和SchedulerFactoryQuartz高级(企业)功能Quartz其他功能Quartz配置参考Quartz主配置Quartz配置ThreadPool设置Quartz配置Global ListenersQuartz插件配置Quartz配置RMI设置Quartz配置RAMJobStoreQuartz配置JDBC-JobStoreTXQuartz配置JDBC-JobStoreCMTQuartz配置DataSources使用JDBC-JobStore配置群集Quartz配置TerracottaJobStore

Quartz配置RAMJobStore


配置RAMJobStore

RAMJobStore用于存储内存中的调度信息(jobs,Triggers和日历)。RAMJobStore快速轻便,但是当进程终止时,所有调度信息都会丢失。

通过设置“org.quartz.jobStore.class”属性来选择RAMJobStore:

将计划程序的JobStore设置为RAMJobStore

org.quartz.jobStore.class = org.quartz.simpl.RAMJobStore

可以使用以下属性调整RAMJobStore:

Property Name Required Type Default Value
org.quartz.jobStore.misfireThreshold no int 60000

org.quartz.jobStore.misfireThreshold

在被认为“misfired”之前,调度程序将“tolerate”一个Triggers将其下一个启动时间通过的毫秒数。默认值(如果您在配置中未输入此属性)为60000(60秒)。org.quartz.jobStore.misfireThreshold



分类导航

关注微信下载离线手册

bootwiki移动版 bootwiki
(群号:472910771)