@ParametersAreNonnullByDefault public final class LifoThreadPoolExecutorSQP extends AbstractExecutorService implements MutableLifoThreadPool
Constructor and Description |
---|
LifoThreadPoolExecutorSQP(int maxNrThreads,
String name) |
LifoThreadPoolExecutorSQP(String poolName,
int coreSize,
int maxSize,
int maxIdleTimeMillis,
int queueSizeLimit) |
LifoThreadPoolExecutorSQP(String poolName,
int coreSize,
int maxSize,
int maxIdleTimeMillis,
int queueSize,
boolean daemonThreads) |
LifoThreadPoolExecutorSQP(String poolName,
int coreSize,
int maxSize,
int maxIdleTimeMillis,
int queueSizeLimit,
boolean daemonThreads,
RejectedExecutionHandler rejectionHandler) |
LifoThreadPoolExecutorSQP(String poolName,
int coreSize,
int maxSize,
int maxIdleTimeMillis,
int queueSizeLimit,
boolean daemonThreads,
RejectedExecutionHandler rejectionHandler,
int threadPriority) |
Modifier and Type | Method and Description |
---|---|
boolean |
awaitTermination(long time,
TimeUnit unit) |
void |
execute(Runnable command) |
void |
exportJmx() |
int |
getCoreThreadCount() |
int |
getMaxIdleTimeMillis() |
int |
getMaxThreadCount() |
int |
getNrQueuedTasks() |
String |
getPoolName() |
int |
getQueueSizeLimit() |
ReentrantLock |
getStateLock() |
Queue<Runnable> |
getTaskQueue() |
int |
getThreadCount() |
int |
getThreadPriority() |
boolean |
isDaemonThreads() |
boolean |
isShutdown() |
boolean |
isTerminated() |
void |
setCoreThreadCount(int coreThreadCount) |
void |
setDaemonThreads(boolean daemonThreads) |
void |
setMaxIdleTimeMillis(int maxIdleTimeMillis) |
void |
setMaxThreadCount(int maxThreadCount) |
void |
setQueueSizeLimit(int queueSizeLimit) |
void |
setThreadPriority(int threadPriority) |
void |
shutdown() |
List<Runnable> |
shutdownNow() |
String |
toString() |
void |
unregisterJmx() |
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submit
public LifoThreadPoolExecutorSQP(int maxNrThreads, String name)
public LifoThreadPoolExecutorSQP(String poolName, int coreSize, int maxSize, int maxIdleTimeMillis, int queueSize, boolean daemonThreads)
public LifoThreadPoolExecutorSQP(String poolName, int coreSize, int maxSize, int maxIdleTimeMillis, int queueSizeLimit)
public LifoThreadPoolExecutorSQP(String poolName, int coreSize, int maxSize, int maxIdleTimeMillis, int queueSizeLimit, boolean daemonThreads, RejectedExecutionHandler rejectionHandler)
public LifoThreadPoolExecutorSQP(String poolName, int coreSize, int maxSize, int maxIdleTimeMillis, int queueSizeLimit, boolean daemonThreads, RejectedExecutionHandler rejectionHandler, int threadPriority)
public void exportJmx()
exportJmx
in interface LifoThreadPool
public void shutdown()
shutdown
in interface ExecutorService
public boolean awaitTermination(long time, TimeUnit unit) throws InterruptedException
awaitTermination
in interface ExecutorService
InterruptedException
public List<Runnable> shutdownNow()
shutdownNow
in interface ExecutorService
public boolean isShutdown()
isShutdown
in interface ExecutorService
public boolean isDaemonThreads()
isDaemonThreads
in interface LifoThreadPool
public boolean isTerminated()
isTerminated
in interface ExecutorService
public int getThreadCount()
getThreadCount
in interface LifoThreadPool
public int getMaxThreadCount()
getMaxThreadCount
in interface LifoThreadPool
public int getCoreThreadCount()
getCoreThreadCount
in interface LifoThreadPool
public ReentrantLock getStateLock()
getStateLock
in interface LifoThreadPool
public int getNrQueuedTasks()
getNrQueuedTasks
in interface LifoThreadPool
public int getQueueSizeLimit()
getQueueSizeLimit
in interface LifoThreadPool
public void unregisterJmx()
unregisterJmx
in interface LifoThreadPool
public void setDaemonThreads(boolean daemonThreads)
setDaemonThreads
in interface MutableLifoThreadPool
public void setMaxIdleTimeMillis(int maxIdleTimeMillis)
setMaxIdleTimeMillis
in interface MutableLifoThreadPool
public void setMaxThreadCount(int maxThreadCount)
setMaxThreadCount
in interface MutableLifoThreadPool
public void setCoreThreadCount(int coreThreadCount)
setCoreThreadCount
in interface MutableLifoThreadPool
public void setQueueSizeLimit(int queueSizeLimit)
setQueueSizeLimit
in interface MutableLifoThreadPool
public void setThreadPriority(int threadPriority)
setThreadPriority
in interface MutableLifoThreadPool
public Queue<Runnable> getTaskQueue()
getTaskQueue
in interface LifoThreadPool
public int getMaxIdleTimeMillis()
getMaxIdleTimeMillis
in interface LifoThreadPool
public String getPoolName()
getPoolName
in interface LifoThreadPool
public int getThreadPriority()
getThreadPriority
in interface LifoThreadPool
Copyright © 2018 SPF4J. All rights reserved.