MCPcopy Create free account
hub / github.com/amikey/java-design-patterns / App

Class App

poison-pill/src/main/java/com/iluwatar/poison/pill/App.java:12–37  ·  view source on GitHub ↗

One of possible approaches to terminate Producer-Consumer pattern is using PoisonPill idiom. If you use PoisonPill as termination signal then Producer is responsible to notify Consumer that exchange is over and reject any further messages. Consumer receiving PoisonPill will stop to read messages fro

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected