cn.schoolwow.data.thread.work.loop.LoopDataThreadWork Maven / Gradle / Ivy
package cn.schoolwow.data.thread.work.loop;
import cn.schoolwow.data.thread.work.AbstractDataThreadWork;
public class LoopDataThreadWork extends AbstractDataThreadWork {
public LoopDataThreadWork(String name) {
super(name);
}
@Override
protected LoopDataThreadWork self() {
return this;
}
/**开始下标*/
public LoopDataThreadWork startIndex(int startIndex){
workFlow.putContextData("startIndex", startIndex);
return this;
}
/**结束下标*/
public LoopDataThreadWork endIndex(int endIndex){
workFlow.putContextData("endIndex", endIndex);
return this;
}
/**处理器*/
public LoopDataThreadWork loopDataThreadHandler(LoopDataThreadHandler loopDataThreadHandler){
workFlow.putContextData("loopDataThreadHandler", loopDataThreadHandler);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy