net.gleamynode.netty.handler.execution
Class MemoryAwareThreadPoolExecutor
java.lang.Object
java.util.concurrent.AbstractExecutorService
java.util.concurrent.ThreadPoolExecutor
net.gleamynode.netty.handler.execution.MemoryAwareThreadPoolExecutor
- All Implemented Interfaces:
- Executor, ExecutorService
- Direct Known Subclasses:
- OrderedMemoryAwareThreadPoolExecutor
public class MemoryAwareThreadPoolExecutor
- extends ThreadPoolExecutor
- Version:
- $Rev$, $Date$
- Author:
- The Netty Project (netty@googlegroups.com), Trustin Lee (trustin@gmail.com)
|
Constructor Summary |
MemoryAwareThreadPoolExecutor(int corePoolSize,
int maxChannelMemorySize,
int maxTotalMemorySize)
|
MemoryAwareThreadPoolExecutor(int corePoolSize,
int maxChannelMemorySize,
int maxTotalMemorySize,
long keepAliveTime,
TimeUnit unit)
|
MemoryAwareThreadPoolExecutor(int corePoolSize,
int maxChannelMemorySize,
int maxTotalMemorySize,
long keepAliveTime,
TimeUnit unit,
ObjectSizeEstimator objectSizeEstimator,
ThreadFactory threadFactory)
|
MemoryAwareThreadPoolExecutor(int corePoolSize,
int maxChannelMemorySize,
int maxTotalMemorySize,
long keepAliveTime,
TimeUnit unit,
ThreadFactory threadFactory)
|
| Methods inherited from class java.util.concurrent.ThreadPoolExecutor |
afterExecute, allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, finalize, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getQueue, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, setCorePoolSize, setKeepAliveTime, setMaximumPoolSize, setRejectedExecutionHandler, setThreadFactory, shutdown, shutdownNow, terminated |
MemoryAwareThreadPoolExecutor
public MemoryAwareThreadPoolExecutor(int corePoolSize,
int maxChannelMemorySize,
int maxTotalMemorySize)
MemoryAwareThreadPoolExecutor
public MemoryAwareThreadPoolExecutor(int corePoolSize,
int maxChannelMemorySize,
int maxTotalMemorySize,
long keepAliveTime,
TimeUnit unit)
MemoryAwareThreadPoolExecutor
public MemoryAwareThreadPoolExecutor(int corePoolSize,
int maxChannelMemorySize,
int maxTotalMemorySize,
long keepAliveTime,
TimeUnit unit,
ThreadFactory threadFactory)
MemoryAwareThreadPoolExecutor
public MemoryAwareThreadPoolExecutor(int corePoolSize,
int maxChannelMemorySize,
int maxTotalMemorySize,
long keepAliveTime,
TimeUnit unit,
ObjectSizeEstimator objectSizeEstimator,
ThreadFactory threadFactory)
getObjectSizeEstimator
public ObjectSizeEstimator getObjectSizeEstimator()
getMaxChannelMemorySize
public int getMaxChannelMemorySize()
setMaxChannelMemorySize
public void setMaxChannelMemorySize(int maxChannelMemorySize)
getMaxTotalMemorySize
public int getMaxTotalMemorySize()
setMaxTotalMemorySize
public void setMaxTotalMemorySize(int maxTotalMemorySize)
execute
public void execute(Runnable command)
- Specified by:
execute in interface Executor- Overrides:
execute in class ThreadPoolExecutor
doExecute
protected void doExecute(Runnable task)
doUnorderedExecute
protected final void doUnorderedExecute(Runnable task)
remove
public boolean remove(Runnable task)
- Overrides:
remove in class ThreadPoolExecutor
beforeExecute
protected void beforeExecute(Thread t,
Runnable r)
- Overrides:
beforeExecute in class ThreadPoolExecutor
Copyright © 2008-Present Trustin Heuiseung Lee. All Rights Reserved.