Package org.apache.cassandra.concurrent
Interface ResizableThreadPool
-
- All Known Subinterfaces:
JMXEnabledThreadPoolExecutorMBean
,LocalAwareExecutorService
,SEPExecutorMBean
- All Known Implementing Classes:
AbstractLocalAwareExecutorService
,CompactionManager.ValidationExecutor
,DebuggableThreadPoolExecutor
,ImmediateExecutor
,JMXEnabledSingleThreadExecutor
,JMXEnabledThreadPoolExecutor
,SEPExecutor
public interface ResizableThreadPool
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getCorePoolSize()
Returns maximum pool size of thread pool.int
getMaximumPoolSize()
Returns maximum pool size of thread pool.void
setCorePoolSize(int newCorePoolSize)
Allows user to resize maximum size of the thread pool.void
setMaximumPoolSize(int newMaximumPoolSize)
Allows user to resize maximum size of the thread pool.
-
-
-
Method Detail
-
getCorePoolSize
int getCorePoolSize()
Returns maximum pool size of thread pool.
-
setCorePoolSize
void setCorePoolSize(int newCorePoolSize)
Allows user to resize maximum size of the thread pool.
-
getMaximumPoolSize
int getMaximumPoolSize()
Returns maximum pool size of thread pool.
-
setMaximumPoolSize
void setMaximumPoolSize(int newMaximumPoolSize)
Allows user to resize maximum size of the thread pool.
-
-