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

cn.keayuan.util.flow.IFlow Maven / Gradle / Ivy

The newest version!
package cn.keayuan.util.flow;

import java.io.Closeable;

/**
 * Created by keayuan on 2020/8/21.
 *
 * @author keayuan
 */
public interface IFlow

extends Closeable { /** * 运行在主线程 * * @param p Process处理器 * @return process计算结果 */ IFlow main(IProcess p); /** * 运行在主线程 * * @param tag 程序标签 * @param p Process处理器 * @return process计算结果 */ IFlow main(String tag, IProcess p); /** * 运行在io线程 * * @param p Process处理器 * @return process计算结果 */ IFlow io(IProcess p); /** * 运行在io线程 * * @param tag 程序标签 * @param p Process处理器 * @return process计算结果 */ IFlow io(String tag, IProcess p); void remove(String tag); Closeable start(); @Override void close(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy