public class TimingOutFixedThreadPoolExecutorServices extends AbstractExecutorServices
ExtendedExecutorServices that uses a fixed thread pool. However threads are terminated if no new tasks arrive within the keep-alive time.ExecutorServices.TaskFactory<T>| Constructor and Description |
|---|
TimingOutFixedThreadPoolExecutorServices(int threadPoolSize,
long keepAliveTime) |
| Modifier and Type | Method and Description |
|---|---|
long |
getKeepAliveTime() |
int |
getPoolSize() |
java.util.concurrent.ExecutorService |
getTaskExecutor() |
protected int |
getThreadPoolSize() |
java.lang.String |
toString() |
checkForExceptions, cleanup, invokeAllAndCheckForExceptions, invokeAllAndCheckForExceptionspublic TimingOutFixedThreadPoolExecutorServices(int threadPoolSize,
long keepAliveTime)
public int getPoolSize()
public java.util.concurrent.ExecutorService getTaskExecutor()
protected int getThreadPoolSize()
getThreadPoolSize in class AbstractExecutorServicespublic long getKeepAliveTime()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2014. All Rights Reserved.