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

cn.schoolwow.data.thread.work.loop.LoopDataThreadWork Maven / Gradle / Ivy

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