Package com.ldtteam.structurize.util
Class IOPool
java.lang.Object
com.ldtteam.structurize.util.IOPool
Class handling our IO pool.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classStructurize specific thread factory. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidExecute a task to be processed in the pool.static ThreadPoolExecutorCreates a new thread pool for pathfinding jobsstatic voidshutdown()Stops all running threads in this thread poolstatic <T> Future<T> Submit a task for processing tothe pool.
-
Method Details
-
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
Submit a task for processing tothe pool.- Parameters:
task- the task to run.- Returns:
- the future.
-
execute
Execute a task to be processed in the pool.- Parameters:
task- the task to run.
-