cn.schoolwow.data.thread.work.interval.IntervalDataThreadWork Maven / Gradle / Ivy
package cn.schoolwow.data.thread.work.interval;
import cn.schoolwow.data.thread.work.AbstractDataThreadWork;
import java.util.List;
public class IntervalDataThreadWork extends AbstractDataThreadWork {
public IntervalDataThreadWork(String name) {
super(name);
}
@Override
protected IntervalDataThreadWork self() {
return this;
}
/**数据列表*/
public IntervalDataThreadWork list(List list){
workFlow.putContextData("list", list);
return this;
}
/**数据间隔*/
public IntervalDataThreadWork interval(int interval){
workFlow.putContextData("interval", interval);
return this;
}
/**处理器*/
public IntervalDataThreadWork intervalDataThreadHandler(IntervalDataThreadHandler intervalDataThreadHandler){
workFlow.putContextData("intervalDataThreadHandler", intervalDataThreadHandler);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy