public class JadexExecutorServiceAdapter
extends java.util.concurrent.AbstractExecutorService
Modifier and Type | Field and Description |
---|---|
protected java.util.List<java.lang.Thread> |
currentthreads
Current threads.
|
protected IThreadPool |
threadpool
The Jadex thread pool.
|
Constructor and Description |
---|
JadexExecutorServiceAdapter(IThreadPool threadpool)
Creates the adapter.
|
Modifier and Type | Method and Description |
---|---|
boolean |
awaitTermination(long timeout,
java.util.concurrent.TimeUnit unit)
Override.
|
void |
execute(java.lang.Runnable command)
Override.
|
boolean |
isShutdown()
Override.
|
boolean |
isTerminated()
Override.
|
void |
shutdown()
Override.
|
java.util.List<java.lang.Runnable> |
shutdownNow()
Override.
|
protected IThreadPool threadpool
protected java.util.List<java.lang.Thread> currentthreads
public JadexExecutorServiceAdapter(IThreadPool threadpool)
threadpool
- The Jadex thread pool to use.public void shutdown()
public java.util.List<java.lang.Runnable> shutdownNow()
public boolean isShutdown()
public boolean isTerminated()
public boolean awaitTermination(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
java.lang.InterruptedException
public void execute(java.lang.Runnable command)