Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Outline
layout title folder permalink categories tags
pattern
Balking
balking
/patterns/balking/
Concurrency
Java
Difficulty-Beginner

Intent

Balking Pattern is used to prevent an object from executing certain code if it is an incomplete or inappropriate state

alt text

Applicability

Use the Balking pattern when

*you want to invoke an action on an object only when it is in a particular state *objects are generally only in a state that is prone to balking temporarily but for an unknown amount of time

Related patterns

  • Guarded Suspendion Pattern
  • Double Checked Locking Pattern
Morty Proxy This is a proxified and sanitized view of the page, visit original site.