public interface ExecutorServiceFactory
ExecutorService. If an implementation of this interface is on the classpath and pointed to by a
ServiceLoaderprovider-configuration file, Vert.x will use it to create
ExecutorServiceinstances to run worker tasks.
ExecutorService createExecutor(ThreadFactory threadFactory, Integer concurrency, Integer maxConcurrency)
ThreadFactorywhich must be used by the created
ExecutorServiceto create threads. Null indicates there is no requirement to use a specific factory.
concurrency- The target level of concurrency or 0 which indicates unspecified
maxConcurrency- A hard limit to the level of concurrency required, should be greater than
concurrencyor 0 which indicates unspecified.
ExecutorServicethat can be used to run tasks
Copyright © 2021 Eclipse. All rights reserved.