public class RequestServiceThreadPool extends ServerThreadPool
java.util.concurrent.ThreadPoolExecutor.AbortPolicy, java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardOldestPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardPolicy| Constructor and Description |
|---|
RequestServiceThreadPool(ServerContext serverCtx) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterExecute(java.lang.Runnable r,
java.lang.Throwable t) |
protected void |
beforeExecute(java.lang.Thread t,
java.lang.Runnable r) |
protected java.util.concurrent.ThreadFactory |
createThreadFactory() |
NetResponse |
handleRequest(RequestHandler handler,
NetRequest request,
NetResponse response) |
void |
setCorePoolSize(int poolSize)
Ensure that the max-poolsize is always the same as the core-poolsize
|
void |
setMaximumPoolSize(int poolSize)
Ensure that the max-poolsize is always the same as the core-poolsize
|
getServerContext, getServerStatistic, sendErrorMailtoDumpString, toDumpString, toString, toStringallowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, execute, finalize, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getQueue, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setKeepAliveTime, setRejectedExecutionHandler, setThreadFactory, shutdown, shutdownNow, terminatedpublic RequestServiceThreadPool(ServerContext serverCtx)
public void setCorePoolSize(int poolSize)
setCorePoolSize in class java.util.concurrent.ThreadPoolExecutorpublic void setMaximumPoolSize(int poolSize)
setMaximumPoolSize in class java.util.concurrent.ThreadPoolExecutorpublic NetResponse handleRequest(RequestHandler handler, NetRequest request, NetResponse response)
protected void afterExecute(java.lang.Runnable r,
java.lang.Throwable t)
afterExecute in class AbstractThreadPoolprotected void beforeExecute(java.lang.Thread t,
java.lang.Runnable r)
beforeExecute in class java.util.concurrent.ThreadPoolExecutorprotected java.util.concurrent.ThreadFactory createThreadFactory()
createThreadFactory in class AbstractThreadPoolCopyright © 2014 EsprIT-Systems. All Rights Reserved.