Uses of Class
org.glassfish.tyrus.client.ThreadPoolConfig
-
Uses of ThreadPoolConfig in org.glassfish.tyrus.client
Modifier and TypeMethodDescriptionThreadPoolConfig.copy()
Return a copy of this thread pool config.static ThreadPoolConfig
ThreadPoolConfig.defaultConfig()
Create new client thread pool configuration instance.ThreadPoolConfig.setCorePoolSize
(int corePoolSize) Set the core thread pool size - the size of the thread pool will never bee smaller than this.ThreadPoolConfig.setDaemon
(boolean isDaemon) Settrue
if thread pool threads are daemons.ThreadPoolConfig.setInitialClassLoader
(ClassLoader initialClassLoader) Specifies the context class loader that will be used by threads in this pool.ThreadPoolConfig.setKeepAliveTime
(long time, TimeUnit unit) The max period of time a thread will wait for a new task to process.ThreadPoolConfig.setMaxPoolSize
(int maxPoolSize) Set max thread pool size.ThreadPoolConfig.setPoolName
(String poolName) Set thread pool name.ThreadPoolConfig.setPriority
(int priority) Set priority of the threads in thread pool.Set a queue implementation that will be used to temporarily store tasks when all threads in the thread pool are busy.ThreadPoolConfig.setQueueLimit
(int queueLimit) Set the limit of the queue, where tasks are temporarily stored when all threads are busy.ThreadPoolConfig.setThreadFactory
(ThreadFactory threadFactory) SetThreadFactory
that will be used to create thread pool threads.