mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 14:58:39 +00:00
932836f68b
* update license plugin * suppress linelength and emptylineseparator rules * fix checkstyle error Co-authored-by: Subhrodip Mohanta <hello@subho.xyz>
layout, title, folder, permalink, categories, language, tags
| layout | title | folder | permalink | categories | language | tags | |
|---|---|---|---|---|---|---|---|
| pattern | Guarded Suspension | guarded-suspension | /patterns/guarded-suspension/ | Concurrency | en |
|
Intent
Use Guarded suspension pattern to handle a situation when you want to execute a method on object which is not in a proper state.
Class diagram
Applicability
Use Guarded Suspension pattern when the developer knows that the method execution will be blocked for a finite period of time
Related patterns
- Balking
