Class IOPool

java.lang.Object
com.ldtteam.structurize.util.IOPool

public final class IOPool extends Object
Class handling our IO pool.
  • Method Details

    • getExecutor

      public static ThreadPoolExecutor getExecutor()
      Creates a new thread pool for pathfinding jobs
      Returns:
      the threadpool executor.
    • shutdown

      public static void shutdown()
      Stops all running threads in this thread pool
    • submit

      public static <T> Future<T> submit(@NotNull @NotNull Callable<T> task)
      Submit a task for processing tothe pool.
      Parameters:
      task - the task to run.
      Returns:
      the future.
    • execute

      public static void execute(@NotNull @NotNull Runnable task)
      Execute a task to be processed in the pool.
      Parameters:
      task - the task to run.