P - The type of objects that identify a pipeline.PipelineRunnable instead.@Deprecated
public class PipelineRunnable<P>
extends java.lang.Object
implements java.lang.Runnable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
active
Deprecated.
A flag to indicate that this pipeline is active.
|
protected java.util.logging.Logger |
logger
Deprecated.
The logger which to use for runtime exceptions stemming from executing a
runnable.
|
protected java.util.Queue<java.lang.Runnable> |
pipeline
Deprecated.
The pipeline providing the work for this runnable.
|
protected P |
pipelineId
Deprecated.
The identifier of our pipeline.
|
protected java.util.Map<P,Pair<PipelineRunnable<P>,java.util.Queue<java.lang.Runnable>>> |
pipelines
Deprecated.
The data structures containing all pipelines from which the current
pipeline will be removed as soon as it is empty.
|
protected java.util.concurrent.atomic.AtomicInteger |
terminate
Deprecated.
A boolean flag to signal this pipeline to terminate.
|
protected java.util.concurrent.CountDownLatch |
terminated
Deprecated.
The latch allowing others to wait for the termination of this pipeline.
|
| Modifier | Constructor and Description |
|---|---|
protected |
PipelineRunnable(P pipelineId,
java.util.Queue<java.lang.Runnable> pipeline,
java.util.Map<P,Pair<PipelineRunnable<P>,java.util.Queue<java.lang.Runnable>>> pipelines,
java.util.concurrent.atomic.AtomicInteger terminate,
java.util.logging.Logger logger)
Deprecated.
Creates a new runnable that executes all the work present for a specific
object (in a pipeline).
|
| Modifier and Type | Method and Description |
|---|---|
void |
awaitTermination()
Deprecated.
Awaits the termination of this runnable.
|
P |
getId()
Deprecated.
Gets the ID of this pipeline.
|
void |
run()
Deprecated.
|
protected final P pipelineId
protected final java.util.Queue<java.lang.Runnable> pipeline
protected final java.util.Map<P,Pair<PipelineRunnable<P>,java.util.Queue<java.lang.Runnable>>> pipelines
protected final java.util.concurrent.atomic.AtomicInteger terminate
protected volatile boolean active
protected final java.util.concurrent.CountDownLatch terminated
protected final java.util.logging.Logger logger
protected PipelineRunnable(P pipelineId, java.util.Queue<java.lang.Runnable> pipeline, java.util.Map<P,Pair<PipelineRunnable<P>,java.util.Queue<java.lang.Runnable>>> pipelines, java.util.concurrent.atomic.AtomicInteger terminate, java.util.logging.Logger logger)
pipelineId - The identifier of our pipeline.pipeline - The pipeline providing the work for this runnable.pipelines - The data structures containing all pipelines from which
the current pipeline will be removed as soon as it is empty.terminate - A boolean flag to signal this thread to terminate. This
allows for synchronising across different pipelines.logger - The logger which to use for runtime exceptions stemming from
a executing a runnable. Such an exception will only be logged, the
execution of the pipeline will continue.public P getId()
public void run()
run in interface java.lang.Runnablepublic void awaitTermination()
throws java.lang.InterruptedException
java.lang.InterruptedException - If the waiting thread is interrupted while
waiting for this runnable to terminate, an
InterruptedException will be thrown.