Class PipelineFlushRunnable<P>

  • Type Parameters:
    P - The type of objects that identify a pipeline.
    All Implemented Interfaces:
    Runnable

    @Deprecated
    public class PipelineFlushRunnable<P>
    extends Object
    implements Runnable
    Deprecated.
    A runnable that executes a specific task exclusively without any pipeline running concurrently. After the task has terminated, the pipelines will be restarted, unless another exclusive task is executed concurrently.
    Author:
    Ulrich Kreher
    • Field Detail

      • task

        protected final Runnable task
        Deprecated.
        The task to run without any pipeline running.
      • abortedPending

        protected final boolean abortedPending
        Deprecated.
        Whether the flush has aborted pending work.
      • logger

        protected final Logger logger
        Deprecated.
        The logger which to use for runtime exceptions stemming from executing the task or interrupts sent when awaiting the termination of the pipelines.
    • Constructor Detail

      • PipelineFlushRunnable

        protected PipelineFlushRunnable​(Runnable task,
                                        Collection<PipelineRunnable<P>> await,
                                        boolean abortedPending,
                                        AbstractPipeliningExecutor<?,​P> executor,
                                        Logger logger)
        Deprecated.
        Creates a new runnable that executes an exclusive tasks without any pipeline running.
        Parameters:
        task - The task to run exclusively.
        await - All pipelines for which to await their termination.
        abortedPending - Whether the flush has aborted pending work.
        executor - The pipeline executor to restart the pipelines after the exclusive task.
        logger - The logger which to use for runtime exceptions stemming from executing the task or interrupts sent when awaiting the termination of the pipelines.
    • Method Detail

      • run

        public void run()
        Deprecated.
        Specified by:
        run in interface Runnable