Package org.infinispan.executors
Class ManageableExecutorService<T extends ExecutorService>
java.lang.Object
org.infinispan.executors.ManageableExecutorService<T>
- Direct Known Subclasses:
LazyInitializingBlockingTaskAwareExecutorService
,LazyInitializingExecutorService
,LazyInitializingScheduledExecutorService
,ManageableThreadPoolExecutorService
- Since:
- 10.0
- Author:
- Tristan Tarrant <tristan@infinispan.org>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
long
int
int
int
int
void
setKeepAliveTime
(long milliseconds) void
setMaximumPoolSize
(int maximumPoolSize)
-
Field Details
-
executor
-
-
Constructor Details
-
ManageableExecutorService
public ManageableExecutorService()
-
-
Method Details
-
getPoolSize
@ManagedAttribute(description="Returns the number of threads in this executor.", displayName="Number of executor threads", dataType=TRAIT) public int getPoolSize() -
getActiveCount
@ManagedAttribute(description="Returns the number of active executor threads.", displayName="Number of active executor threads", dataType=TRAIT) public int getActiveCount() -
getMaximumPoolSize
@ManagedAttribute(description="Returns the maximum number of executor threads.", displayName="Maximum number of executor threads", dataType=TRAIT, writable=true) public int getMaximumPoolSize() -
setMaximumPoolSize
public void setMaximumPoolSize(int maximumPoolSize) -
getLargestPoolSize
@ManagedAttribute(description="Returns the largest ever number of executor threads.", displayName="Largest number of executor threads", dataType=TRAIT) public int getLargestPoolSize() -
getQueueSize
@ManagedAttribute(description="Returns the number of elements in this executor\'s queue.", displayName="Elements in the queue", dataType=TRAIT) public int getQueueSize() -
getKeepAliveTime
@ManagedAttribute(description="Returns the keep-alive time for this pool\'s threads", displayName="Keep-alive for pooled threads", dataType=TRAIT) public long getKeepAliveTime() -
setKeepAliveTime
public void setKeepAliveTime(long milliseconds)
-