
public class StatisticsExecutorImpl
extends java.lang.Object
implements org.jboss.jca.core.api.workmanager.StatisticsExecutor
| Constructor and Description |
|---|
StatisticsExecutorImpl(org.jboss.threads.BlockingExecutor realExecutor)
StatisticsExecutorImpl constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute(java.lang.Runnable runnable) |
void |
executeBlocking(java.lang.Runnable runnable) |
void |
executeBlocking(java.lang.Runnable runnable,
long l,
java.util.concurrent.TimeUnit timeUnit) |
void |
executeNonBlocking(java.lang.Runnable runnable) |
long |
getNumberOfFreeThreads()
get the calculated number of free threads
|
public StatisticsExecutorImpl(org.jboss.threads.BlockingExecutor realExecutor)
realExecutor - the real executor we are delegatingpublic void execute(java.lang.Runnable runnable)
execute in interface java.util.concurrent.Executorexecute in interface org.jboss.threads.BlockingExecutorpublic void executeBlocking(java.lang.Runnable runnable)
throws java.util.concurrent.RejectedExecutionException,
java.lang.InterruptedException
executeBlocking in interface org.jboss.threads.BlockingExecutorjava.util.concurrent.RejectedExecutionExceptionjava.lang.InterruptedExceptionpublic void executeBlocking(java.lang.Runnable runnable,
long l,
java.util.concurrent.TimeUnit timeUnit)
throws java.util.concurrent.RejectedExecutionException,
java.lang.InterruptedException
executeBlocking in interface org.jboss.threads.BlockingExecutorjava.util.concurrent.RejectedExecutionExceptionjava.lang.InterruptedExceptionpublic void executeNonBlocking(java.lang.Runnable runnable)
throws java.util.concurrent.RejectedExecutionException
executeNonBlocking in interface org.jboss.threads.BlockingExecutorjava.util.concurrent.RejectedExecutionExceptionpublic long getNumberOfFreeThreads()
org.jboss.jca.core.api.workmanager.StatisticsExecutorgetNumberOfFreeThreads in interface org.jboss.jca.core.api.workmanager.StatisticsExecutorCopyright © 2014 IronJacamar (http://www.ironjacamar.org)