Class StatisticsExecutorImpl
- java.lang.Object
-
- org.jboss.as.connector.services.workmanager.StatisticsExecutorImpl
-
- All Implemented Interfaces:
Executor,org.jboss.jca.core.api.workmanager.StatisticsExecutor,org.jboss.threads.BlockingExecutor
public class StatisticsExecutorImpl extends Object implements org.jboss.jca.core.api.workmanager.StatisticsExecutor
A StatisticsExecutor implementation keeping track of numberOfFreeThreads- Author:
- Stefano Maestri
-
-
Constructor Summary
Constructors Constructor Description StatisticsExecutorImpl(org.jboss.threads.BlockingExecutor realExecutor)StatisticsExecutorImpl constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(Runnable runnable)voidexecuteBlocking(Runnable runnable)voidexecuteBlocking(Runnable runnable, long l, TimeUnit timeUnit)voidexecuteNonBlocking(Runnable runnable)longgetNumberOfFreeThreads()
-
-
-
Method Detail
-
execute
public void execute(Runnable runnable)
-
executeBlocking
public void executeBlocking(Runnable runnable) throws RejectedExecutionException, InterruptedException
- Specified by:
executeBlockingin interfaceorg.jboss.threads.BlockingExecutor- Throws:
RejectedExecutionExceptionInterruptedException
-
executeBlocking
public void executeBlocking(Runnable runnable, long l, TimeUnit timeUnit) throws RejectedExecutionException, InterruptedException
- Specified by:
executeBlockingin interfaceorg.jboss.threads.BlockingExecutor- Throws:
RejectedExecutionExceptionInterruptedException
-
executeNonBlocking
public void executeNonBlocking(Runnable runnable) throws RejectedExecutionException
- Specified by:
executeNonBlockingin interfaceorg.jboss.threads.BlockingExecutor- Throws:
RejectedExecutionException
-
getNumberOfFreeThreads
public long getNumberOfFreeThreads()
- Specified by:
getNumberOfFreeThreadsin interfaceorg.jboss.jca.core.api.workmanager.StatisticsExecutor
-
-