Interface ThreadPool

All Known Implementing Classes:
ThreadPoolImpl

public interface ThreadPool
An application-wide shared thread pool with a configurable number of threads. Will be used to operations that perform on parallel streams.
  • Method Summary

    Modifier and Type
    Method
    Description
    <R> Future<R>
    submit(Callable<R> task)
    Dispatch a Callable.
  • Method Details

    • submit

      <R> Future<R> submit(Callable<R> task)
      Dispatch a Callable.
      Type Parameters:
      R - type
      Parameters:
      task - a callable
      Returns:
      a Future aka promise