@ProviderType
public interface ThreadPoolMBean
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBlockPolicy()
Retrieve the block policy of the thread pool.
|
int |
getExecutorActiveCount()
Retrieve the active count from the pool's Executor.
|
long |
getExecutorCompletedTaskCount()
Retrieve the completed task count from the pool's Executor.
|
int |
getExecutorCorePoolSize()
Retrieve the core pool size from the pool's Executor.
|
int |
getExecutorLargestPoolSize()
Retrieve the largest pool size from the pool's Executor.
|
int |
getExecutorMaximumPoolSize()
Retrieve the maximum pool size from the pool's Executor.
|
int |
getExecutorPoolSize()
Retrieve the pool size from the pool's Executor.
|
long |
getExecutorTaskCount()
Retrieve the task count from the pool's Executor.
|
long |
getKeepAliveTime()
Return the configured keep alive time.
|
int |
getMaxPoolSize()
Return the configured maximum pool size.
|
long |
getMaxThreadAge()
Deprecated.
Since version 1.1.1 always returns -1 as threads are no longer retired
but instead the thread locals are cleaned up (SLING-6261)
|
int |
getMinPoolSize()
Return the minimum pool size.
|
java.lang.String |
getName()
Return the name of the thread pool
|
java.lang.String |
getPid()
Return the configuration pid of the thread pool.
|
java.lang.String |
getPriority()
Return the configured priority of the thread pool.
|
int |
getQueueSize()
Return the configured queue size.
|
int |
getShutdownWaitTimeMs()
Return the configured shutdown wait time in milliseconds.
|
boolean |
isDaemon()
Return whether or not the thread pool creates daemon threads.
|
boolean |
isShutdownGraceful()
Return whether or not the thread pool is configured to shutdown gracefully.
|
boolean |
isUsed()
Return whether or not the thread pool is in use.
|
java.lang.String getBlockPolicy()
int getExecutorActiveCount()
long getExecutorCompletedTaskCount()
int getExecutorCorePoolSize()
int getExecutorLargestPoolSize()
int getExecutorMaximumPoolSize()
int getExecutorPoolSize()
long getExecutorTaskCount()
@Deprecated long getMaxThreadAge()
long getKeepAliveTime()
int getMaxPoolSize()
int getMinPoolSize()
java.lang.String getName()
java.lang.String getPid()
java.lang.String getPriority()
int getQueueSize()
int getShutdownWaitTimeMs()
boolean isDaemon()
boolean isShutdownGraceful()
boolean isUsed()
Copyright © 2022 The Apache Software Foundation. All rights reserved.