Skip to content

Files

Latest commit

0d4a8db · Sep 30, 2017

History

History
This branch is 2304 commits behind iluwatar/java-design-patterns:master.

guarded-suspension

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Mar 25, 2017
Mar 21, 2017
Mar 25, 2017
Sep 30, 2017
layout title folder permalink pumlid categories tags
pattern
Guarded Suspension
guarded-suspension
/patterns/guarded-suspension/
ROux3W8n30LxJW47IDnJxLLCOcMD4YVoXxq-eQTwev56UeSvgiVejmTBwL4fjDzFzsLF0CKhD_OpNc6aPOgJU2vp0FUuSAVmnW-cIiPDqa9tKZ4OQ1kW1MgbcYniaHXF0VBoH-VGaTVlnK5Iztu1
Concurrency
Java
Difficulty-Beginner

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.

Guarded Suspension 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