top.cutexingluo.tools.basepackage.basehandler.CallableTryHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xingtools-core Show documentation
Show all versions of xingtools-core Show documentation
xingtools 核心,包括各种接口,实体类和工具类
package top.cutexingluo.tools.basepackage.basehandler;
import java.util.concurrent.Callable;
import java.util.function.Consumer;
import java.util.function.Supplier;
/**
* 一元装饰附加接口
*
* @author XingTian
* @version 1.0.0
* @date 2023/10/17 22:38
* @since 1.0.2
*/
public interface CallableTryHandler {
/**
* 对 task 进行操作
*
* @param task 目标任务
* @param canRunTask 是否可以运行任务
* @param inCatch 异常捕获
* @return {@link Callable}<{@link T}>
*/
Callable decorate(Callable task, Supplier canRunTask, Consumer inCatch);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy