Package org.hcjf.service
Class Service.ThreadPoolAgent
- java.lang.Object
-
- org.hcjf.log.debug.Agent
-
- org.hcjf.service.Service.ThreadPoolAgent
-
- All Implemented Interfaces:
Service.ThreadPoolAgentMBean
- Enclosing class:
- Service<C extends ServiceConsumer>
public static class Service.ThreadPoolAgent extends Agent implements Service.ThreadPoolAgentMBean
-
-
Constructor Summary
Constructors Constructor Description ThreadPoolAgent(java.lang.String name, java.util.concurrent.ThreadPoolExecutor threadPoolExecutor)
-
Method Summary
Modifier and Type Method Description longgetActiveCount()longgetCompletedTaskCount()intgetCorePoolSize()intgetLargestPoolSize()intgetMaximumPoolSize()intgetPoolSize()longgetTaskCount()-
Methods inherited from class org.hcjf.log.debug.Agent
getName, getPackageName
-
-
-
-
Method Detail
-
getActiveCount
public long getActiveCount()
- Specified by:
getActiveCountin interfaceService.ThreadPoolAgentMBean
-
getCompletedTaskCount
public long getCompletedTaskCount()
- Specified by:
getCompletedTaskCountin interfaceService.ThreadPoolAgentMBean
-
getTaskCount
public long getTaskCount()
- Specified by:
getTaskCountin interfaceService.ThreadPoolAgentMBean
-
getCorePoolSize
public int getCorePoolSize()
- Specified by:
getCorePoolSizein interfaceService.ThreadPoolAgentMBean
-
getMaximumPoolSize
public int getMaximumPoolSize()
- Specified by:
getMaximumPoolSizein interfaceService.ThreadPoolAgentMBean
-
getLargestPoolSize
public int getLargestPoolSize()
- Specified by:
getLargestPoolSizein interfaceService.ThreadPoolAgentMBean
-
getPoolSize
public int getPoolSize()
- Specified by:
getPoolSizein interfaceService.ThreadPoolAgentMBean
-
-