com.xiaoleilu.hutool
类 CronUtil

java.lang.Object
  继承者 com.xiaoleilu.hutool.CronUtil

public class CronUtil
extends Object

定时任务工具类

作者:
xiaoleilu

字段摘要
static String CRONTAB_CONFIG_PATH
          Crontab配置文件
 
构造方法摘要
CronUtil()
           
 
方法摘要
static void schedule(String schedulingPattern, Runnable task)
          加入定时任务
static void start()
          开始
static void stop()
          停止
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

CRONTAB_CONFIG_PATH

public static final String CRONTAB_CONFIG_PATH
Crontab配置文件

另请参见:
常量字段值
构造方法详细信息

CronUtil

public CronUtil()
方法详细信息

schedule

public static void schedule(String schedulingPattern,
                            Runnable task)
加入定时任务

参数:
schedulingPattern - 定时任务执行时间的crontab表达式
task - 任务

start

public static void start()
开始


stop

public static void stop()
停止



Copyright © 2014. All rights reserved.