Package org.teamapps.util.threading
Interface SequentialExecutorFactory
- All Known Implementing Classes:
CompletableFutureChainSequentialExecutorFactory
public interface SequentialExecutorFactory
Creates
ExecutorServices that will guarantee the sequential execution of submitted tasks.
Note that this guarantee is NOT given with ThreadPoolExecutor.
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
-
Method Details
-
createExecutor
-