Package tech.riemann.etp.thread
Interface JobRunner
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
- Author:
- Kerbores(kerbores@riemann.tech)
-
Method Summary
-
Method Details
-
run
void run(int index, int threads) 使用指定的线程数运行任务- Parameters:
index- 执行任务的索引号这个索程在多线程环境下唯一标识任务threads- 线程数,即任务将并行运行的线程数量
-