public class StatisticsExecutorImpl extends java.lang.Object implements 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.Executor
execute
in interface org.jboss.threads.BlockingExecutor
public void executeBlocking(java.lang.Runnable runnable) throws java.util.concurrent.RejectedExecutionException, java.lang.InterruptedException
executeBlocking
in interface org.jboss.threads.BlockingExecutor
java.util.concurrent.RejectedExecutionException
java.lang.InterruptedException
public 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.BlockingExecutor
java.util.concurrent.RejectedExecutionException
java.lang.InterruptedException
public void executeNonBlocking(java.lang.Runnable runnable) throws java.util.concurrent.RejectedExecutionException
executeNonBlocking
in interface org.jboss.threads.BlockingExecutor
java.util.concurrent.RejectedExecutionException
public long getNumberOfFreeThreads()
StatisticsExecutor
getNumberOfFreeThreads
in interface StatisticsExecutor
Copyright © 2013 IronJacamar (http://www.ironjacamar.org)