Skip to content

Files

Latest commit

2aa9e78 · Oct 23, 2018

History

History
This branch is 2158 commits behind iluwatar/java-design-patterns:master.

poison-pill

README.md

layout title folder permalink categories tags
pattern
Poison Pill
poison-pill
/patterns/poison-pill/
Other
Java
Difficulty-Intermediate
Reactive

Intent

Poison Pill is known predefined data item that allows to provide graceful shutdown for separate distributed consumption process.

alt text

Applicability

Use the Poison Pill idiom when

  • need to send signal from one thread/process to another to terminate

Real world examples