APIdia Launch Partner
Top Description Inners Fields Constructors Methods
sun.nio.ch

public Class ThreadPool

extends Object
Class Inheritance
Imports
java.util.concurrent.*, jdk.internal.misc.InnocuousThread

Encapsulates a thread pool associated with a channel group.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static final String
private static final String
private final ExecutorService
private final boolean
private final int

Constructor Summary

AccessConstructor and Description
private
ThreadPool(ExecutorService executor, boolean isFixed, int poolSize)

Method Summary

Modifier and TypeMethod and Description
pack-priv static ThreadPool
create(int nThreads, ThreadFactory factory)

pack-priv static ThreadPool
pack-priv static ThreadFactory
pack-priv ExecutorService
pack-priv static ThreadPool
private static int
private static ThreadFactory
pack-priv boolean
pack-priv int
public static ThreadPool
wrap(ExecutorService executor, int initialSize)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DEFAULT_THREAD_POOL_INITIAL_SIZEback to summary
private static final String DEFAULT_THREAD_POOL_INITIAL_SIZE
DEFAULT_THREAD_POOL_THREAD_FACTORYback to summary
private static final String DEFAULT_THREAD_POOL_THREAD_FACTORY
executorback to summary
private final ExecutorService executor
isFixedback to summary
private final boolean isFixed
poolSizeback to summary
private final int poolSize

Constructor Detail

ThreadPoolback to summary
private ThreadPool(ExecutorService executor, boolean isFixed, int poolSize)

Method Detail

createback to summary
pack-priv static ThreadPool create(int nThreads, ThreadFactory factory)
createDefaultback to summary
pack-priv static ThreadPool createDefault()
defaultThreadFactoryback to summary
pack-priv static ThreadFactory defaultThreadFactory()
executorback to summary
pack-priv ExecutorService executor()
getDefaultback to summary
pack-priv static ThreadPool getDefault()
getDefaultThreadPoolInitialSizeback to summary
private static int getDefaultThreadPoolInitialSize()
getDefaultThreadPoolThreadFactoryback to summary
private static ThreadFactory getDefaultThreadPoolThreadFactory()
isFixedThreadPoolback to summary
pack-priv boolean isFixedThreadPool()
poolSizeback to summary
pack-priv int poolSize()
wrapback to summary
public static ThreadPool wrap(ExecutorService executor, int initialSize)
sun.nio.ch back to summary

private Class ThreadPool.DefaultThreadPoolHolder

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv static final ThreadPool

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

defaultThreadPoolback to summary
pack-priv static final ThreadPool defaultThreadPool

Constructor Detail

DefaultThreadPoolHolderback to summary
private DefaultThreadPoolHolder()