Files
java-design-patterns/poison-pill/index.md
Markus fdb9be1e76 Work towards #56: Add permalink to every pattern
This makes cleaner URLs thanks to jekyll
2015-08-15 18:03:05 +02:00

22 lines
567 B
Markdown

---
layout: pattern
title: Poison Pill
folder: poison-pill
permalink: /patterns/poison-pill/
categories: pattern_cat
tags: pattern_tag
---
**Intent:** Poison Pill is known predefined data item that allows to provide
graceful shutdown for separate distributed consumption process.
![alt text](./etc/poison-pill.png "Poison Pill")
**Applicability:** Use the Poison Pill idiom when
* need to send signal from one thread/process to another to terminate
**Real world examples:**
* [akka.actor.PoisonPill](http://doc.akka.io/docs/akka/2.1.4/java/untyped-actors.html)