- 8
- 0
- 约9.75千字
- 约 26页
- 2017-09-09 发布于湖北
- 举报
营销研究quartz作业调度
短信平台定时任务实例 该类中添加需要的属性变量; 定义一个构造函数: public SchedulerTrigger(String taskId,String groupId,String sendContent,String sendtype,String sendhours,String sendmint,String sendTemp){ this.taskId = taskId; this.groupId = groupId; this.sendContent = sendContent; this.sendhours = sendhours; this.sendtype = sendtype; this.sendmint = sendmint; this.sendTemp = sendTemp; } 保证在调用该作业调度器时传入需要的参数信息 * 短信平台定时任务实例 在该类中创建一个启动任务的方法: public void startSchTrig() throws SchedulerException, ParseException{ SchedulerFactory schedulerFactory = new StdSchedulerFactory(); Scheduler scheduler = schedulerF
原创力文档

文档评论(0)