lucee.Componentcoldbox.system.async.executors.ExecutorBuilder
Static class to build executors from Java: - FixedThreadPool - SingleThreadPool - CachedThreadPool - ScheduledThreadPool
Method Summary | |
---|---|
any
|
newCachedThreadPool()
Creates a thread pool that creates new threads as needed, but will. |
any
|
newFixedThreadPool([numeric threads='[runtime expression]'])
Creates a thread pool that reuses a fixed number of threads operating off a shared unbounded queue. |
any
|
newScheduledThreadPool([any corePoolSize='[runtime expression]'])
Creates a thread pool that can schedule commands to run after a given delay,. |
Methods inherited from class lucee.Component |
---|
None |
Method Detail |
---|
Creates a thread pool that creates new threads as needed, but will reuse previously constructed threads when they are available.
Creates a thread pool that reuses a fixed number of threads operating off a shared unbounded queue.
threads
- The number of threads in the pool, defaults to 20Creates a thread pool that can schedule commands to run after a given delay, or to execute periodically.
corePoolSize
- The number of threads to keep in the pool, even if they are idle, default is 20