| Package | Description |
|---|---|
| de.aristaflow.adept2.util.threading | |
| de.aristaflow.adept2.util.threading.executor |
| Modifier and Type | Method and Description |
|---|---|
static java.util.concurrent.ExecutorService |
ExecutorTools.createCachedExecutor(int corePoolSize,
int maxPoolSize,
boolean prestart,
Adept2ThreadFactory factory)
Creates a new CachedThreadPoolExecutor with the given initial
parameters and default rejected execution handler.
|
static java.util.concurrent.ExecutorService |
ExecutorTools.createExecutor(int poolSize,
Adept2ThreadFactory factory,
boolean timeout)
Creates a new executor service with the designated core pool size using the
designated name and logger to create a
Adept2ThreadFactory for creating threads. |
static java.util.concurrent.ExecutorService |
ExecutorTools.createExecutor(int poolSize,
Adept2ThreadFactory factory,
boolean timeout,
int queueLimit)
Creates a new executor service with the designated core pool size using the
designated name and logger to create a
Adept2ThreadFactory for creating threads. |
static LoggingScheduledThreadPoolExecutor |
ExecutorTools.createScheduledExecutor(int poolSize,
Adept2ThreadFactory factory,
boolean continueRegularAfterException)
Creates a new scheduled executor service with the designated minimal pool size using the
designated factory for creating threads.
|
| Constructor and Description |
|---|
AbstractPipeliningExecutor(Adept2ThreadFactory threadFactory)
Deprecated.
Creates a new thread pool executor with an unlimited amount of pipelines
for different objects using the designate thread factory for creating
threads.
|
AbstractPipeliningExecutor(int limit,
Adept2ThreadFactory threadFactory)
Deprecated.
Creates a new thread pool executor with the designated number of pipelines
and threads for different objects using the designate thread factory for
creating threads.
|
AFThreadPoolExecutor(int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
java.util.concurrent.TimeUnit unit,
java.util.concurrent.BlockingQueue<java.lang.Runnable> workQueue,
Adept2ThreadFactory threadFactory,
int queueLimit)
Creates a new AFThreadPoolExecutor with the given initial
parameters and default rejected execution handler.
|
AFThreadPoolExecutor(int corePoolSize,
int maximumPoolSize,
long keepAliveTime,
java.util.concurrent.TimeUnit unit,
java.util.concurrent.BlockingQueue<java.lang.Runnable> workQueue,
Adept2ThreadFactory threadFactory,
java.util.concurrent.RejectedExecutionHandler handler,
int queueLimit)
Creates a new ThreadPoolExecutor with the given initial
parameters.
|
CachedThreadPoolExecutor(int corePoolSize,
int maxPoolSize,
boolean prestart,
Adept2ThreadFactory threadFactory)
Creates a new CachedThreadPoolExecutor with the given initial
parameters and default rejected execution handler.
|
LimitedPipelineExecutor(int limit,
Adept2ThreadFactory threadFactory)
Deprecated.
Creates a new thread pool executor with the designated amount of pipelines
and threads.
|
LoggingScheduledThreadPoolExecutor(int corePoolSize,
Adept2ThreadFactory threadFactory,
boolean continueRegularAfterException)
Creates a new
LoggingScheduledThreadPoolExecutor with the designated core pool
size and thread factory also providing the logger. |
LoggingScheduledThreadPoolExecutor(int corePoolSize,
Adept2ThreadFactory threadFactory,
java.util.concurrent.RejectedExecutionHandler handler,
boolean continueRegularAfterException)
Creates a new
LoggingScheduledThreadPoolExecutor with the designated core pool
size, rejected execution handler and thread factory also providing the logger. |
UnlimitedPipelineExecutor(Adept2ThreadFactory threadFactory)
Deprecated.
Creates a new thread pool executor with one pipeline per registered object
and no limit for the threads.
|
| Constructor and Description |
|---|
AbstractObjectSpecificExecutor(Adept2ThreadFactory threadFactory)
Creates a new thread pool executor with an unlimited amount of threads for different objects
using the designate thread factory for creating threads.
|
AbstractObjectSpecificExecutor(int limit,
Adept2ThreadFactory threadFactory)
Creates a new thread pool executor with the designated number of threads and threads for
different objects using the designate thread factory for creating threads.
|
AbstractObjectSpecificExecutor(int corePoolSize,
int maxPoolSize,
boolean prestart,
Adept2ThreadFactory threadFactory)
Creates a new thread pool executor with the designated number of threads and threads for
different objects using the designate thread factory for creating threads.
|
AbstractPipeliningExecutor(Adept2ThreadFactory threadFactory)
Creates a new thread pool executor with an unlimited amount of pipelines
for different objects using the designated thread factory for creating
threads.
|
AbstractPipeliningExecutor(int limit,
Adept2ThreadFactory threadFactory)
Creates a new thread pool executor with the designated number of pipelines
and threads for different objects using the designate thread factory for
creating threads.
|
LimitedPipelineExecutor(int limit,
Adept2ThreadFactory threadFactory)
Creates a new thread pool executor with the designated amount of pipelines
and threads.
|
ObjectOneWorkExecutor(boolean blockUntilFlush,
Adept2ThreadFactory threadFactory)
Creates a new thread pool executor with an unlimited amount of threads and objects, accepting
exactly one piece of work per object.
|
ObjectOneWorkExecutor(boolean blockUntilFlush,
int corePoolSize,
int maxPoolSize,
boolean prestart,
Adept2ThreadFactory threadFactory)
Creates a new thread pool executor with the designated (maximum) amount of (core) threads (and
unlimited objects), accepting exactly one piece of work per object.
|
UnlimitedPipelineExecutor(Adept2ThreadFactory threadFactory)
Creates a new thread pool executor with one pipeline per registered object
and no limit for the threads.
|