Skip to content

Latest commit

 

History

History

poison-pill

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
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