Skip to content

Files

Latest commit

9ebbc42 · Oct 12, 2019

History

History
This branch is 9 commits ahead of, 2104 commits behind iluwatar/java-design-patterns:master.

guarded-suspension

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Nov 28, 2017
Oct 12, 2019
Nov 28, 2017
Oct 12, 2019
layout title folder permalink categories tags
pattern
Guarded Suspension
guarded-suspension
/patterns/guarded-suspension/
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