@Beta public class ThreadPoolExecutorMBean extends Object
| Constructor and Description |
|---|
ThreadPoolExecutorMBean(ThreadPoolExecutor threadPoolExecutor) |
| Modifier and Type | Method and Description |
|---|---|
int |
getActiveCount() |
long |
getCompletedTaskCount() |
int |
getCorePoolSize() |
String |
getKeepAliveTime() |
int |
getLargestPoolSize() |
int |
getMaximumPoolSize() |
int |
getPoolSize() |
int |
getQueuedTaskCount() |
String |
getRejectedExecutionHandler() |
long |
getTaskCount() |
boolean |
isAllowCoreThreadTimeOut() |
boolean |
isShutdown() |
boolean |
isTerminated() |
boolean |
isTerminating() |
void |
setAllowCoreThreadTimeOut(boolean allowsCoreThreadTimeOut) |
void |
setCorePoolSize(int corePoolSize) |
void |
setKeepAliveTime(String duration) |
void |
setMaximumPoolSize(int maximumPoolSize) |
public ThreadPoolExecutorMBean(ThreadPoolExecutor threadPoolExecutor)
public boolean isShutdown()
public boolean isTerminating()
public boolean isTerminated()
public String getRejectedExecutionHandler()
public int getCorePoolSize()
public void setCorePoolSize(int corePoolSize)
public int getMaximumPoolSize()
public void setMaximumPoolSize(int maximumPoolSize)
public int getPoolSize()
public int getActiveCount()
public int getLargestPoolSize()
public String getKeepAliveTime()
public void setKeepAliveTime(String duration)
public boolean isAllowCoreThreadTimeOut()
public void setAllowCoreThreadTimeOut(boolean allowsCoreThreadTimeOut)
public long getTaskCount()
public long getCompletedTaskCount()
public int getQueuedTaskCount()
Copyright © 2010–2020 Airlift. All rights reserved.