@MBean public abstract class ManageableExecutorService<T extends ExecutorService> extends Object
| Constructor and Description |
|---|
ManageableExecutorService() |
| Modifier and Type | Method and Description |
|---|---|
int |
getActiveCount() |
long |
getKeepAliveTime() |
int |
getLargestPoolSize() |
int |
getMaximumPoolSize() |
int |
getPoolSize() |
int |
getQueueSize() |
void |
setKeepAliveTime(long milliseconds) |
void |
setMaximumPoolSize(int maximumPoolSize) |
protected volatile T extends ExecutorService executor
@ManagedAttribute(description="Returns the number of threads in this executor.",
displayName="Number of executor threads",
dataType=TRAIT)
public int getPoolSize()
@ManagedAttribute(description="Returns the number of active executor threads.",
displayName="Number of active executor threads",
dataType=TRAIT)
public int getActiveCount()
@ManagedAttribute(description="Returns the maximum number of executor threads.",
displayName="Maximum number of executor threads",
dataType=TRAIT,
writable=true)
public int getMaximumPoolSize()
public void setMaximumPoolSize(int maximumPoolSize)
@ManagedAttribute(description="Returns the largest ever number of executor threads.",
displayName="Largest number of executor threads",
dataType=TRAIT)
public int getLargestPoolSize()
@ManagedAttribute(description="Returns the number of elements in this executor\'s queue.",
displayName="Elements in the queue",
dataType=TRAIT)
public int getQueueSize()
@ManagedAttribute(description="Returns the keep-alive time for this pool\'s threads",
displayName="Keep-alive for pooled threads",
dataType=TRAIT)
public long getKeepAliveTime()
public void setKeepAliveTime(long milliseconds)
Copyright © 2022 JBoss by Red Hat. All rights reserved.