Anurag Agarwal 271d7ae9bd Resolves checkstyle errors for remaining p (#1091)
* Reduces checkstyle errors in page-object

* Reduces checkstyle errors in partial-response

* Reduces checkstyle errors in pipeline

* Reduces checkstyle errors in poison-pill

* Reduces checkstyle errors in priority-queue

* Reduces checkstyle errors in private-class-data

* Reduces checkstyle errors in property

* Reduces checkstyle errors in prototype

* Reduces checkstyle errors in proxy
2019-11-16 14:56:26 +02:00
..
2019-10-12 20:05:54 +03:00
2019-10-08 09:19:28 +03:00

layout, title, folder, permalink, categories, tags
layout title folder permalink categories tags
pattern Pipeline pipeline /patterns/pipeline/ Behavioral
Java
Functional
Difficulty-Intermediate

Intent

Allows processing of data in a series of stages by giving in an initial input and passing the processed output to be used by the next stages.

Applicability

Use the Pipeline pattern when you want to

  • execute individual stages that yields a final value
  • add readability to complex sequence of operations by providing a fluent builder as an interface
  • improve testability of code since stages will most likely be doing a single thing, complying to the Single Responsibility Principle (SRP)

Typical Use Case

  • implement stages and execute them in an ordered manner

Real world examples

Credits