Uses of Interface
org.aoju.bus.cron.factory.Task
Packages that use Task
Package
Description
定时任务模块,提供类Crontab表达式的定时任务,实现参考了Cron4j,同时可以支持秒级别的定时任务定义和年的定义(同时兼容Crontab、Cron4j、Quartz表达式)
定时任务中作业的抽象封装和实现,包括Runnable实现和反射实现
-
Uses of Task in org.aoju.bus.cron
Methods in org.aoju.bus.cron that return TaskModifier and TypeMethodDescriptionExecutor.getTask()获得原始任务对象Repertoire.getTask(int index) 获得指定位置的Task获得指定id的Task获得指定id的TaskMethods in org.aoju.bus.cron that return types with arguments of type TaskMethods in org.aoju.bus.cron with parameters of type TaskModifier and TypeMethodDescriptionRepertoire.add(String id, CronPattern pattern, Task task) 新增Taskstatic String加入定时任务static String加入定时任务新增Task,如果任务ID已经存在,抛出异常新增Task,使用随机UUIDScheduler.schedule(String id, CronPattern pattern, Task task) 新增Task,如果任务ID已经存在,抛出异常 -
Uses of Task in org.aoju.bus.cron.factory
Classes in org.aoju.bus.cron.factory that implement TaskModifier and TypeClassDescriptionclass定时作业,除了定义了作业,也定义了作业的执行周期以及IDclass反射执行任务 通过传入类名#方法名,通过反射执行相应的方法 如果是静态方法直接执行,如果是对象方法,需要类有默认的构造方法classMethods in org.aoju.bus.cron.factory that return TaskConstructors in org.aoju.bus.cron.factory with parameters of type Task