public class ManagedExecutor extends javax.management.StandardMBean implements Executor, ManagedExecutorMBean
| Constructor and Description |
|---|
ManagedExecutor(java.lang.String id,
ExecutorImpl internalExecutor,
ExecutorConfig config) |
| Modifier and Type | Method and Description |
|---|---|
int |
capacity()
The capacity of the underlying queue (if any)
|
void |
execute(java.lang.Runnable command)
Execute a command.
|
int |
getActiveCount() |
long |
getCompletedTaskCount() |
int |
getCorePoolSize() |
protected java.lang.String |
getDescription(javax.management.MBeanFeatureInfo info) |
protected java.lang.String |
getDescription(javax.management.MBeanInfo info) |
java.lang.String |
getId() |
ExecutorImpl |
getInternalExecutor() |
long |
getKeepAliveTimeInMillis() |
int |
getLargestPoolSize() |
int |
getMaximumPoolSize() |
long |
getNumberOfRejectedExecutions() |
int |
getPoolSize() |
int |
getQueueSize() |
long |
getShutdownDelay() |
long |
getTaskCount() |
void |
increaseRejectedExecutions() |
boolean |
isAllowCoreThreadTimeOut() |
boolean |
isBypassIfSynchronous() |
void |
reset() |
void |
setCorePoolSize(int size) |
void |
setKeepAliveTimeInMillis(long timeInMillis) |
void |
setMaximumPoolSize(int size) |
void |
shutdown()
Shutdown this executor.
|
int |
size()
The current size of the underlying queue (if any)
|
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementationpublic ManagedExecutor(java.lang.String id,
ExecutorImpl internalExecutor,
ExecutorConfig config)
throws javax.management.NotCompliantMBeanException
javax.management.NotCompliantMBeanExceptionpublic java.lang.String getId()
public int getActiveCount()
getActiveCount in interface ManagedExecutorMBeanpublic long getCompletedTaskCount()
getCompletedTaskCount in interface ManagedExecutorMBeanpublic int getCorePoolSize()
getCorePoolSize in interface ManagedExecutorMBeanpublic void setCorePoolSize(int size)
setCorePoolSize in interface ManagedExecutorMBeanpublic long getKeepAliveTimeInMillis()
getKeepAliveTimeInMillis in interface ManagedExecutorMBeanpublic void setKeepAliveTimeInMillis(long timeInMillis)
setKeepAliveTimeInMillis in interface ManagedExecutorMBeanpublic int getLargestPoolSize()
getLargestPoolSize in interface ManagedExecutorMBeanpublic int getMaximumPoolSize()
getMaximumPoolSize in interface ManagedExecutorMBeanpublic void setMaximumPoolSize(int size)
setMaximumPoolSize in interface ManagedExecutorMBeanpublic int getPoolSize()
getPoolSize in interface ManagedExecutorMBeanpublic long getTaskCount()
getTaskCount in interface ManagedExecutorMBeanpublic int getQueueSize()
getQueueSize in interface ManagedExecutorMBeanpublic boolean isAllowCoreThreadTimeOut()
isAllowCoreThreadTimeOut in interface ManagedExecutorMBeanpublic long getNumberOfRejectedExecutions()
getNumberOfRejectedExecutions in interface ManagedExecutorMBeanpublic void reset()
reset in interface ManagedExecutorMBeanpublic long getShutdownDelay()
getShutdownDelay in interface ManagedExecutorMBeanpublic boolean isBypassIfSynchronous()
isBypassIfSynchronous in interface ManagedExecutorMBeanpublic void increaseRejectedExecutions()
public ExecutorImpl getInternalExecutor()
public void execute(java.lang.Runnable command)
Executorpublic void shutdown()
Executorpublic int capacity()
Executorpublic int size()
Executorprotected java.lang.String getDescription(javax.management.MBeanInfo info)
getDescription in class javax.management.StandardMBeanprotected java.lang.String getDescription(javax.management.MBeanFeatureInfo info)
getDescription in class javax.management.StandardMBeanCopyright © 2005-2014 FuseSource. All Rights Reserved.