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 voidexecuteBlocking(Runnable task)voidexecuteBlocking(Runnable task, long timeout, TimeUnit unit)voidexecuteNonBlocking(Runnable task)intgetActiveCount()longgetCompletedTaskCount()intgetCoreThreads()intgetCurrentThreadCount()longgetKeepAlive()intgetLargestPoolSize()intgetLargestThreadCount()intgetMaxThreads()intgetQueueSize()intgetRejectedCount()longgetTaskCount()booleanisAllowCoreTimeout()booleanisBlocking()protected ExecutorServiceprotectExecutor(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:
protectExecutorin 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:
executeBlockingin interfaceorg.jboss.threads.BlockingExecutor- Throws:
RejectedExecutionExceptionInterruptedException
-
executeBlocking
public void executeBlocking(Runnable task, long timeout, TimeUnit unit) throws RejectedExecutionException, InterruptedException
- Specified by:
executeBlockingin interfaceorg.jboss.threads.BlockingExecutor- Throws:
RejectedExecutionExceptionInterruptedException
-
executeNonBlocking
public void executeNonBlocking(Runnable task) throws RejectedExecutionException
- Specified by:
executeNonBlockingin interfaceorg.jboss.threads.BlockingExecutor- Throws:
RejectedExecutionException
-
-