| 123456789101112131415161718 |
- package com.ym.job;
- import com.ym.pojo.ScheduledTaskInfo;
- import lombok.Getter;
- import org.springframework.scheduling.config.FixedDelayTask;
- /**
- * Created by weiqinxiao on 2019/3/15.
- */
- public class ScheduledDelayTask extends FixedDelayTask {
- private @Getter
- ScheduledTaskInfo scheduledTaskInfo;
- public ScheduledDelayTask(Runnable runnable, long interval, long initialDelay, ScheduledTaskInfo scheduledTaskInfo) {
- super(runnable, interval, initialDelay);
- this.scheduledTaskInfo = scheduledTaskInfo;
- }
- }
|