O - The type of object for which work is registered and which
identifies a pipeline.LimitedPipelineExecutor instead.@Deprecated public class LimitedPipelineExecutor<O> extends AbstractPipeliningExecutor<O,java.lang.Integer>
java.util.concurrent.ThreadPoolExecutor.AbortPolicy, java.util.concurrent.ThreadPoolExecutor.CallerRunsPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardOldestPolicy, java.util.concurrent.ThreadPoolExecutor.DiscardPolicy| Modifier and Type | Field and Description |
|---|---|
protected int |
limit
Deprecated.
The maximum amount of pipelines.
|
abortCount, flushPending, logger, pipelines, shutdownPendingactiveThreads, completedTasks, submittedTasks| Constructor and Description |
|---|
LimitedPipelineExecutor(int limit,
Adept2ThreadFactory threadFactory)
Deprecated.
Creates a new thread pool executor with the designated amount of pipelines
and threads.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Integer |
getPipelineFor(O object)
Deprecated.
Gets the identifier determining the pipeline for the designated object
accordingly to the limit of the number of pipelines.
|
execute, flushAndExecute, flushAndExecuteUnchecked, isShutdown, restartPipelines, shutdown, shutdownNow, submit, submit, submitAndFlushafterExecute, beforeExecute, execute, newTaskFor, newTaskFor, setLogExecuteCallStack, updateQueueLimitallowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, finalize, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getQueue, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setCorePoolSize, setKeepAliveTime, setMaximumPoolSize, setRejectedExecutionHandler, setThreadFactory, terminated, toStringpublic LimitedPipelineExecutor(int limit,
Adept2ThreadFactory threadFactory)
limit - The maximum number of threads allowed in the pool and also the
maximum number of pipelines.threadFactory - The factory to use when the executor creates a new
thread.protected java.lang.Integer getPipelineFor(O object)
getPipelineFor in class AbstractPipeliningExecutor<O,java.lang.Integer>object - The object for which to determine the pipeline.