Class UnlimitedPipelineExecutor<O>
- java.lang.Object
-
- java.util.concurrent.AbstractExecutorService
-
- java.util.concurrent.ThreadPoolExecutor
-
- de.aristaflow.adept2.util.threading.AFThreadPoolExecutor
-
- de.aristaflow.adept2.util.threading.AbstractPipeliningExecutor<O,O>
-
- de.aristaflow.adept2.util.threading.UnlimitedPipelineExecutor<O>
-
- Type Parameters:
O
- The type of object for which work is registered and which identifies a pipeline.
- All Implemented Interfaces:
Executor
,ExecutorService
@Deprecated public class UnlimitedPipelineExecutor<O> extends AbstractPipeliningExecutor<O,O>
Deprecated.UseUnlimitedPipelineExecutor
instead.A pipeline executor that has a separate pipeline for each registered object and therefore also no upper limit concerning the amount of pipelines as well as the amount of threads.- Author:
- Ulrich Kreher
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.concurrent.ThreadPoolExecutor
ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy
-
-
Field Summary
-
Fields inherited from class de.aristaflow.adept2.util.threading.AbstractPipeliningExecutor
abortCount, flushPending, logger, pipelines, shutdownPending
-
Fields inherited from class de.aristaflow.adept2.util.threading.AFThreadPoolExecutor
activeThreads, completedTasks, HYSTERESIS, submittedTasks
-
-
Constructor Summary
Constructors Constructor Description UnlimitedPipelineExecutor(Adept2ThreadFactory threadFactory)
Deprecated.Creates a new thread pool executor with one pipeline per registered object and no limit for the threads.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected O
getPipelineFor(O object)
Deprecated.Gets the identifier determining the pipeline for the designated object accordingly to the limit of the number of pipelines.-
Methods inherited from class de.aristaflow.adept2.util.threading.AbstractPipeliningExecutor
execute, flushAndExecute, flushAndExecuteUnchecked, isShutdown, restartPipelines, shutdown, shutdownNow, submit, submit, submitAndFlush
-
Methods inherited from class de.aristaflow.adept2.util.threading.AFThreadPoolExecutor
afterExecute, beforeExecute, execute, logPoolStatistics, newTaskFor, newTaskFor, recalculateLogLimits, setCorePoolSize, setLogExecuteCallStack, setMaximumPoolSize, updateQueueLimit
-
Methods inherited from class java.util.concurrent.ThreadPoolExecutor
allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, finalize, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getQueue, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setKeepAliveTime, setRejectedExecutionHandler, setThreadFactory, terminated, toString
-
-
-
-
Constructor Detail
-
UnlimitedPipelineExecutor
public UnlimitedPipelineExecutor(Adept2ThreadFactory threadFactory)
Deprecated.Creates a new thread pool executor with one pipeline per registered object and no limit for the threads. The threads will stay idle for 60 seconds before they terminate.- Parameters:
threadFactory
- The factory to use when the executor creates a new thread.
-
-
Method Detail
-
getPipelineFor
protected O getPipelineFor(O object)
Deprecated.Gets the identifier determining the pipeline for the designated object accordingly to the limit of the number of pipelines. Returns the designated object.- Specified by:
getPipelineFor
in classAbstractPipeliningExecutor<O,O>
- Parameters:
object
- The object for which to determine the pipeline.- Returns:
- The identifier determining the pipeline for the designated object.
-
-