com.sun.grizzly.util
Class DefaultThreadPool

java.lang.Object
  extended by java.util.concurrent.AbstractExecutorService
      extended by com.sun.grizzly.util.AbstractThreadPool
          extended by com.sun.grizzly.util.FixedThreadPool
              extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.grizzly.util.AbstractThreadPool
AbstractThreadPool.Worker
 
Field Summary
 
Fields inherited from class com.sun.grizzly.util.FixedThreadPool
workQueue
 
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.  
 
Method Summary
 void start()
          Deprecated.  
 String toString()
          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
 
Methods inherited from class java.util.concurrent.AbstractExecutorService
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.concurrent.ExecutorService
invokeAll, invokeAll, invokeAny, invokeAny, submit, submit, submit
 

Constructor Detail

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
Method Detail

start

public void start()
Deprecated. 

toString

public String toString()
Deprecated. 
Overrides:
toString in class AbstractThreadPool


Copyright © 2012 Oracle Corporation. All Rights Reserved.