View Source on Github

Poison Pill

Difficulty-Intermediate Java Reactive Other

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