com.sun.grizzly.util
Class DefaultThreadPool
java.lang.Object
java.util.concurrent.AbstractExecutorService
com.sun.grizzly.util.AbstractThreadPool
com.sun.grizzly.util.FixedThreadPool
com.sun.grizzly.util.DefaultThreadPool
- All Implemented Interfaces:
- ExtendedThreadPool, Thread.UncaughtExceptionHandler, Executor, ExecutorService
Deprecated. please use GrizzlyExecutorService.createInstance()
instead.
@Deprecated
public class DefaultThreadPool
- extends FixedThreadPool
- Author:
- gustav trede
Fields inherited from class com.sun.grizzly.util.AbstractThreadPool |
activeThreadsCount, byteBufferType, corePoolSize, currentPoolSize, DEFAULT_IDLE_THREAD_KEEPALIVE_TIMEOUT, DEFAULT_MAX_TASKS_QUEUED, DEFAULT_MAX_THREAD_COUNT, DEFAULT_MIN_THREAD_COUNT, initialByteBufferSize, keepAliveTime, maxPoolSize, name, poison, priority, probe, running, statelock, threadFactory, workers |
Constructor Summary |
DefaultThreadPool()
Deprecated. |
DefaultThreadPool(String name,
int corePoolsize,
int maxPoolSize,
long keepAliveTime,
TimeUnit timeUnit)
Deprecated. |
DefaultThreadPool(String name,
int corePoolsize,
int maxPoolSize,
long keepAliveTime,
TimeUnit timeUnit,
ThreadFactory threadFactory)
Deprecated. |
DefaultThreadPool(String name,
int corePoolsize,
int maxPoolSize,
long keepAliveTime,
TimeUnit timeUnit,
ThreadFactory threadFactory,
BlockingQueue<Runnable> workQueue)
Deprecated. |
Methods inherited from class com.sun.grizzly.util.FixedThreadPool |
awaitTermination, execute, getActiveCount, getCompletedTaskCount, getLargestPoolSize, getMaxQueuedTasksCount, getPoolSize, getQueue, getQueueSize, getTaskCount, isTerminated, setCorePoolSize, setMaximumPoolSize, setMaxQueuedTasksCount |
Methods inherited from class com.sun.grizzly.util.AbstractThreadPool |
afterExecute, beforeExecute, drain, getByteBufferType, getCorePoolSize, getDefaultThreadFactory, getInitialByteBufferSize, getKeepAliveTime, getMaximumPoolSize, getName, getPriority, getThreadFactory, isShutdown, nextThreadId, onMaxNumberOfThreadsReached, onTaskCompletedEvent, onTaskDequeued, onTaskQueued, onTaskQueueOverflow, onWorkerExit, onWorkerStarted, poisonAll, setByteBufferType, setInitialByteBufferSize, setKeepAliveTime, setName, setPriority, setThreadFactory, shutdown, shutdownNow, startWorker, uncaughtException, validateNewPoolSize |
DefaultThreadPool
public DefaultThreadPool()
- Deprecated.
DefaultThreadPool
public DefaultThreadPool(String name,
int corePoolsize,
int maxPoolSize,
long keepAliveTime,
TimeUnit timeUnit)
- Deprecated.
- Parameters:
name
- corePoolsize
- maxPoolSize
- keepAliveTime
- timeUnit
- TimeUnit
DefaultThreadPool
public DefaultThreadPool(String name,
int corePoolsize,
int maxPoolSize,
long keepAliveTime,
TimeUnit timeUnit,
ThreadFactory threadFactory)
- Deprecated.
- Parameters:
name
- corePoolsize
- maxPoolSize
- keepAliveTime
- timeUnit
- TimeUnit
threadFactory
- ThreadFactory
DefaultThreadPool
public DefaultThreadPool(String name,
int corePoolsize,
int maxPoolSize,
long keepAliveTime,
TimeUnit timeUnit,
ThreadFactory threadFactory,
BlockingQueue<Runnable> workQueue)
- Deprecated.
- Parameters:
name
- corePoolsize
- maxPoolSize
- keepAliveTime
- timeUnit
- TimeUnit
threadFactory
- ThreadFactory
workQueue
- BlockingQueue
start
public void start()
- Deprecated.
toString
public String toString()
- Deprecated.
- Overrides:
toString
in class AbstractThreadPool
Copyright © 2012 Oracle Corporation. All Rights Reserved.