All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.schoolwow.data.thread.work.interval.IntervalDataThreadWork Maven / Gradle / Ivy

There is a newer version: 1.2.0
Show newest version
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