public interface ExecutorServiceFactory
ExecutorService. If an implementation of this interface is on the
classpath and pointed to by a ServiceLoader provider-configuration
file, Vert.x will use it to create ExecutorService instances to run
worker tasks.| Modifier and Type | Method and Description |
|---|---|
ExecutorService |
createExecutor(ThreadFactory threadFactory,
Integer concurrency,
Integer maxConcurrency)
Create an ExecutorService
|
ExecutorService createExecutor(ThreadFactory threadFactory, Integer concurrency, Integer maxConcurrency)
threadFactory - A ThreadFactory which must be used by the
created ExecutorService to create threads. Null
indicates there is no requirement to use a specific
factory.concurrency - The target level of concurrency or 0 which indicates
unspecifiedmaxConcurrency - A hard limit to the level of concurrency required,
should be greater than concurrency or 0 which
indicates unspecified.ExecutorService that can be used to run tasksCopyright © 2021 Eclipse. All rights reserved.