Class QueuelessThreadPoolFactory
- java.lang.Object
-
- org.jboss.as.clustering.jgroups.subsystem.QueuelessThreadPoolFactory
-
- All Implemented Interfaces:
Function<ThreadFactory,Executor>,ThreadPoolConfiguration,ThreadPoolFactory
- Direct Known Subclasses:
ThreadPoolFactoryServiceConfigurator
public class QueuelessThreadPoolFactory extends Object implements ThreadPoolConfiguration, ThreadPoolFactory
Factory for creating a queue-less thread pool.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description QueuelessThreadPoolFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Executorapply(ThreadFactory threadFactory)longgetKeepAliveTime()intgetMaxThreads()intgetMinThreads()QueuelessThreadPoolFactorysetKeepAliveTime(long keepAliveTime)QueuelessThreadPoolFactorysetMaxThreads(int maxThreads)QueuelessThreadPoolFactorysetMinThreads(int minThreads)
-
-
-
Method Detail
-
setMinThreads
public QueuelessThreadPoolFactory setMinThreads(int minThreads)
-
setMaxThreads
public QueuelessThreadPoolFactory setMaxThreads(int maxThreads)
-
setKeepAliveTime
public QueuelessThreadPoolFactory setKeepAliveTime(long keepAliveTime)
-
getMinThreads
public int getMinThreads()
- Specified by:
getMinThreadsin interfaceThreadPoolConfiguration
-
getMaxThreads
public int getMaxThreads()
- Specified by:
getMaxThreadsin interfaceThreadPoolConfiguration
-
getKeepAliveTime
public long getKeepAliveTime()
- Specified by:
getKeepAliveTimein interfaceThreadPoolConfiguration
-
apply
public Executor apply(ThreadFactory threadFactory)
- Specified by:
applyin interfaceFunction<ThreadFactory,Executor>
-
-