Interface IndexedRunnable

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 IndexedRunnable
An interface of a runnable that has an index and can throw checked exceptions.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    run(int threadIndex)
     
  • Method Details

    • run

      void run(int threadIndex) throws Exception
      Parameters:
      threadIndex - an index of thread that executes this IndexedRunnable.
      Throws:
      Exception - if something goes wrong