@ProviderType
public interface ThreadPoolConfig
| Modifier and Type | Interface and Description |
|---|---|
static class |
ThreadPoolConfig.ThreadPoolPolicy
The thread pool policies.
|
static class |
ThreadPoolConfig.ThreadPriority |
| Modifier and Type | Method and Description |
|---|---|
ThreadPoolConfig.ThreadPoolPolicy |
getBlockPolicy()
Return the block policy.
|
java.util.concurrent.ThreadFactory |
getFactory()
Return the thread pool factory.
|
long |
getKeepAliveTime()
Return the keep alive time.
|
int |
getMaxPoolSize()
Return the maximum pool size
|
long |
getMaxThreadAge()
Deprecated.
Since version 3.4.0 always returns -1 as threads are no longer retired
but instead the thread locals are cleaned up (SLING-6261)
|
int |
getMinPoolSize()
Return the minimum pool size.
|
ThreadPoolConfig.ThreadPriority |
getPriority()
Return the priority for the threads.
|
int |
getQueueSize()
Return the queue size.
|
int |
getShutdownWaitTimeMs()
Return the shutdown wait time in ms.
|
boolean |
isDaemon()
Return if daemon threads should be created.
|
boolean |
isShutdownGraceful()
Should this pool shutdown graceful.
|
int getMinPoolSize()
int getMaxPoolSize()
int getQueueSize()
@Deprecated long getMaxThreadAge()
long getKeepAliveTime()
ThreadPoolConfig.ThreadPoolPolicy getBlockPolicy()
boolean isShutdownGraceful()
true if the pool should shutdown graceful.int getShutdownWaitTimeMs()
java.util.concurrent.ThreadFactory getFactory()
nullThreadPoolConfig.ThreadPriority getPriority()
boolean isDaemon()
true if daemon threads should be created.Copyright © 2010 - 2023 Adobe. All Rights Reserved