Package com.norconex.commons.lang.pipeline

# Interface IPipelineStage<T>

Type Parameters:
  `T` - pipeline context type

All Superinterfaces:
  `Predicate<T>`

All Known Implementing Classes:
  `Pipeline`

Functional Interface:
  This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@Deprecated(since="3.0.0") @FunctionalInterface public interface IPipelineStage<T> extends Predicate<T>
Deprecated.
Use `Predicate` instead.
A logical step in the pipeline. Typically an action to be executed.

Since:
  1.5.0

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `execute(T context)`
  Deprecated.
  Executes this pipeline stage.
  `default boolean`
  `test(T t)`
  Deprecated.

  ### Methods inherited from interface java.util.function.Predicate

  `and, negate, or`

- ## Method Details

  - ### test

    default boolean test(T t)
    Deprecated.
    Specified by:
      `test` in interface `Predicate<T>`

  - ### execute

    boolean execute(T context)
    Deprecated.
    Executes this pipeline stage. Implementors are encouraged to throw `PipelineException` upon errors.
    Parameters:
      `context` - pipeline context
    Returns:
      whether to continue pipeline execution or stop (`true` to continue).