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.

@FunctionalInterface public interface JobRunner
Author:
Kerbores(kerbores@riemann.tech)
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    run(int index, int threads)
    使用指定的线程数运行任务
  • Method Details

    • run

      void run(int index, int threads)
      使用指定的线程数运行任务
      Parameters:
      index - 执行任务的索引号这个索程在多线程环境下唯一标识任务
      threads - 线程数,即任务将并行运行的线程数量