RT, 翻了下文档,木有找到例子。。。
8 回复
用JobDetail + SimpleTrigger搞了。。。
JobDetail jobDetail = new JobDetailImpl()
jobDetail.setJobClass(TestJob)
jobDetail.setName("test")
jobDetail.setGroup("A")
SchedulerFactory schedulerFactory = new StdSchedulerFactory()
Scheduler scheduler = schedulerFactory.getScheduler()
SimpleTrigger simpleTrigger = new SimpleTriggerImpl('testTrigger')
scheduler.scheduleJob(jobDetail,simpleTrigger)
scheduler.start()
添加回复
请先登陆