Class AbstractPipeline<T extends CustomContext>

    • Constructor Detail

      • AbstractPipeline

        public AbstractPipeline​(Pipeline<?> next)
        Parameters:
        next - the pipeline that's next in the sequence.
    • Method Detail

      • getLocalContext

        public T getLocalContext​(WorkerContext context)
                          throws PipelineException
        Returns the local context for this class using getContextKey, override this together with getContextKey to change the key usage in case you want to add multiple identical pipelines to the worker.
        Parameters:
        context - the WorkerContext
        Returns:
        the local context for this class using getContextKey()
        Throws:
        PipelineException - thrown when there is no CustomContext or the CustomContext is null.
      • setNext

        public void setNext​(Pipeline<?> next)
        setNext method. When using this while parsing one can make live changes the pipeline structure. Use with caution.
        Parameters:
        next - set the next pipeline
      • getContextKey

        public java.lang.String getContextKey()
        Defaults to the fully qualified class name of the object.
        Returns:
        getClass().getName() as name.