Package | Description |
---|---|
org.glassfish.jersey.jdk.connector.internal |
Jersey Jdk
connector internal classes. |
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.
|
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(ClassLoader initialClassLoader)
Specifies the context class loader that will be used by threads in this pool.
|
ThreadPoolConfig |
ThreadPoolConfig.setKeepAliveTime(long time,
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(String poolName)
Set thread pool name.
|
ThreadPoolConfig |
ThreadPoolConfig.setPriority(int priority)
Set priority of the threads in thread pool.
|
ThreadPoolConfig |
ThreadPoolConfig.setQueue(Queue<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(ThreadFactory threadFactory)
Set
ThreadFactory that will be used to create thread pool threads. |
Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.