Package org.jboss.as.threads
Class ManagedJBossThreadPoolExecutorService
- java.lang.Object
-
- org.jboss.as.threads.ManagedExecutorService
-
- org.jboss.as.threads.ManagedJBossThreadPoolExecutorService
-
- All Implemented Interfaces:
Executor
,ExecutorService
,org.jboss.threads.BlockingExecutor
public class ManagedJBossThreadPoolExecutorService extends ManagedExecutorService implements org.jboss.threads.BlockingExecutor
- Author:
- Alexey Loubyansky
-
-
Constructor Summary
Constructors Constructor Description ManagedJBossThreadPoolExecutorService(org.jboss.threads.JBossThreadPoolExecutor executor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
executeBlocking(Runnable task)
void
executeBlocking(Runnable task, long timeout, TimeUnit unit)
void
executeNonBlocking(Runnable task)
int
getActiveCount()
long
getCompletedTaskCount()
int
getCoreThreads()
int
getCurrentThreadCount()
long
getKeepAlive()
int
getLargestPoolSize()
int
getLargestThreadCount()
int
getMaxThreads()
int
getQueueSize()
int
getRejectedCount()
long
getTaskCount()
boolean
isAllowCoreTimeout()
boolean
isBlocking()
protected ExecutorService
protectExecutor(ExecutorService executor)
-
Methods inherited from class org.jboss.as.threads.ManagedExecutorService
awaitTermination, execute, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated, shutdown, shutdownNow, submit, submit, submit
-
-
-
-
Method Detail
-
protectExecutor
protected ExecutorService protectExecutor(ExecutorService executor)
- Overrides:
protectExecutor
in classManagedExecutorService
-
getCoreThreads
public int getCoreThreads()
-
isAllowCoreTimeout
public boolean isAllowCoreTimeout()
-
isBlocking
public boolean isBlocking()
-
getMaxThreads
public int getMaxThreads()
-
getKeepAlive
public long getKeepAlive()
-
getRejectedCount
public int getRejectedCount()
-
getTaskCount
public long getTaskCount()
-
getLargestThreadCount
public int getLargestThreadCount()
-
getLargestPoolSize
public int getLargestPoolSize()
-
getCurrentThreadCount
public int getCurrentThreadCount()
-
getCompletedTaskCount
public long getCompletedTaskCount()
-
getActiveCount
public int getActiveCount()
-
getQueueSize
public int getQueueSize()
-
executeBlocking
public void executeBlocking(Runnable task) throws RejectedExecutionException, InterruptedException
- Specified by:
executeBlocking
in interfaceorg.jboss.threads.BlockingExecutor
- Throws:
RejectedExecutionException
InterruptedException
-
executeBlocking
public void executeBlocking(Runnable task, long timeout, TimeUnit unit) throws RejectedExecutionException, InterruptedException
- Specified by:
executeBlocking
in interfaceorg.jboss.threads.BlockingExecutor
- Throws:
RejectedExecutionException
InterruptedException
-
executeNonBlocking
public void executeNonBlocking(Runnable task) throws RejectedExecutionException
- Specified by:
executeNonBlocking
in interfaceorg.jboss.threads.BlockingExecutor
- Throws:
RejectedExecutionException
-
-