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

cn.schoolwow.data.thread.work.single.SingleDataThreadWork Maven / Gradle / Ivy

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