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