Package org.teamapps.util.threading
Interface SequentialExecutorFactory
-
- All Known Implementing Classes:
CompletableFutureChainSequentialExecutorFactory
public interface SequentialExecutorFactoryCreatesExecutorServices that will guarantee the sequential execution of submitted tasks. Note that this guarantee is NOT given withThreadPoolExecutor.The most naive implementation will just return
Executors.newSingleThreadExecutor(), but most operating systems have limits on the number of threads allowed, so this is not a good solution, and not a good idea for other reasons, too.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CloseableExecutorcreateExecutor(java.lang.String name)
-
-
-
Method Detail
-
createExecutor
CloseableExecutor createExecutor(java.lang.String name)
-
-