Quartz(4):quartz.properties配置文件介紹


quartz.properties的位置:

 

 可以自定義quartz.properties文件,去修改quartz的默認配置

默認的quartz.properties

# Default Properties file for use by StdSchedulerFactory
# to create a Quartz Scheduler Instance, if a different
# properties file is not explicitly specified.
#

#用來區分特定的調度實例,如正在使用群集功能,則必須對群集中“邏輯上”相同的調度程序的每個實例使用相同的名稱,重新賦值該值
org.quartz.scheduler.instanceName: DefaultQuartzScheduler
org.quartz.scheduler.rmi.export: false
org.quartz.scheduler.rmi.proxy: false
#設置這項為true使我們在調用job的execute()之前能夠開始一個UserTransaction。
org.quartz.scheduler.wrapJobExecutionInUserTransaction: false

#quartz自帶的線程池實現類
org.quartz.threadPool.class: org.quartz.simpl.SimpleThreadPool
#處理job的線程個數,必須大於等於1
org.quartz.threadPool.threadCount: 10
#線程的優先級,默認即可
org.quartz.threadPool.threadPriority: 5
#自創建父線程
org.quartz.threadPool.threadsInheritContextClassLoaderOfInitializingThread: true
#作業最大延遲時間毫秒
org.quartz.jobStore.misfireThreshold: 60000

#數據保存方式為持久化
org.quartz.jobStore.class: org.quartz.simpl.RAMJobStore 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM