|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.concurrent.AbstractExecutorService
java.util.concurrent.ThreadPoolExecutor
org.apache.cassandra.service.AbstractCassandraDaemon.CleaningThreadPool
public static class AbstractCassandraDaemon.CleaningThreadPool
A subclass of Java's ThreadPoolExecutor which implements Jetty's ThreadPool interface (for integration with Avro), and performs ClientState cleanup.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.util.concurrent.ThreadPoolExecutor |
---|
java.util.concurrent.ThreadPoolExecutor.AbortPolicy, java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardOldestPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardPolicy |
Constructor Summary | |
---|---|
AbstractCassandraDaemon.CleaningThreadPool(java.lang.ThreadLocal<ClientState> state,
int minWorkerThread,
int maxWorkerThreads)
|
Method Summary | |
---|---|
protected void |
afterExecute(java.lang.Runnable r,
java.lang.Throwable t)
|
boolean |
dispatch(java.lang.Runnable job)
|
int |
getIdleThreads()
|
int |
getThreads()
|
boolean |
isLowOnThreads()
|
void |
join()
|
Methods inherited from class java.util.concurrent.ThreadPoolExecutor |
---|
allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, beforeExecute, execute, finalize, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getQueue, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setCorePoolSize, setKeepAliveTime, setMaximumPoolSize, setRejectedExecutionHandler, setThreadFactory, shutdown, shutdownNow, terminated |
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, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractCassandraDaemon.CleaningThreadPool(java.lang.ThreadLocal<ClientState> state, int minWorkerThread, int maxWorkerThreads)
Method Detail |
---|
protected void afterExecute(java.lang.Runnable r, java.lang.Throwable t)
afterExecute
in class java.util.concurrent.ThreadPoolExecutor
public boolean dispatch(java.lang.Runnable job)
dispatch
in interface org.mortbay.thread.ThreadPool
public int getIdleThreads()
getIdleThreads
in interface org.mortbay.thread.ThreadPool
public int getThreads()
getThreads
in interface org.mortbay.thread.ThreadPool
public boolean isLowOnThreads()
isLowOnThreads
in interface org.mortbay.thread.ThreadPool
public void join() throws java.lang.InterruptedException
join
in interface org.mortbay.thread.ThreadPool
java.lang.InterruptedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |