Package | Description |
---|---|
org.glassfish.jersey.jdk.connector.internal |
Jersey Jdk
connector internal classes. |
Modifier and Type | Field and Description |
---|---|
private static ThreadPoolConfig |
TransportFilter.currentThreadPoolConfig
ThreadPoolConfig current TransportFilter.channelGroup has been created with. |
private static ThreadPoolConfig |
ThreadPoolConfig.DEFAULT |
private ThreadPoolConfig |
TransportFilter.threadPoolConfig |
private ThreadPoolConfig |
TransportFilter.TransportThreadFactory.threadPoolConfig |
private ThreadPoolConfig |
ConnectorConfiguration.threadPoolConfig |
Modifier and Type | Method and Description |
---|---|
ThreadPoolConfig |
ThreadPoolConfig.copy()
Return a copy of this thread pool config.
|
static ThreadPoolConfig |
ThreadPoolConfig.defaultConfig()
Create new client thread pool configuration instance.
|
(package private) ThreadPoolConfig |
ConnectorConfiguration.getThreadPoolConfig() |
ThreadPoolConfig |
ThreadPoolConfig.setCorePoolSize(int corePoolSize)
Set the core thread pool size - the size of the thread pool will never bee smaller than this.
|
ThreadPoolConfig |
ThreadPoolConfig.setDaemon(boolean isDaemon)
Set
true if thread pool threads are daemons. |
ThreadPoolConfig |
ThreadPoolConfig.setInitialClassLoader(java.lang.ClassLoader initialClassLoader)
Specifies the context class loader that will be used by threads in this pool.
|
ThreadPoolConfig |
ThreadPoolConfig.setKeepAliveTime(long time,
java.util.concurrent.TimeUnit unit)
The max period of time a thread will wait for a new task to process.
|
ThreadPoolConfig |
ThreadPoolConfig.setMaxPoolSize(int maxPoolSize)
Set max thread pool size.
|
ThreadPoolConfig |
ThreadPoolConfig.setPoolName(java.lang.String poolName)
Set thread pool name.
|
ThreadPoolConfig |
ThreadPoolConfig.setPriority(int priority)
Set priority of the threads in thread pool.
|
ThreadPoolConfig |
ThreadPoolConfig.setQueue(java.util.Queue<java.lang.Runnable> queue)
Set a queue implementation that will be used to temporarily store tasks when all threads in the thread pool are busy.
|
ThreadPoolConfig |
ThreadPoolConfig.setQueueLimit(int queueLimit)
Set the limit of the queue, where tasks are temporarily stored when all threads are busy.
|
ThreadPoolConfig |
ThreadPoolConfig.setThreadFactory(java.util.concurrent.ThreadFactory threadFactory)
Set
ThreadFactory that will be used to create thread pool threads. |
Constructor and Description |
---|
ThreadPoolConfig(ThreadPoolConfig cfg) |
TransportFilter(int inputBufferSize,
ThreadPoolConfig threadPoolConfig,
int containerIdleTimeout)
Constructor.
|
TransportThreadFactory(ThreadPoolConfig threadPoolConfig) |