Balking Design Pattern

Balking Design Pattern

This article describes the Balking design pattern. This is a concurrency design pattern, a category of design pattern used by software engineers, when writing computer programs.

Introduction

The Balking pattern is a design pattern, used in software engineering to "balk" or reject a request, when the object is not in a valid or complete state.
This usually means returning without performing any actions.
Another example would be to throw an exception like an InvalidOperationException.
This pattern has become quite antiquated, as other modern patterns like Guarded Suspension and Read-write Lock replaced it.

This pattern is defined as a concurrency design pattern because in this context it was defined for protecting and performing multi-threaded operations.

Return to Top


Benefits

Thread-safe operations, like ignoring commands when still processing previous actions.

 

 

Return to Top


Examples of the pattern

[please contribute]

 

 

Return to Top


See Also

Link to domain parent articles and related articles in TechNet Wiki.

 

Return to Top


Community Resources

These are the external links, including links to Microsoft and TechNet sites that are non-Wiki.
  • [Please contribute]

 

Return to Top


References section

Use this section if you pulled source material and ideas from other sites, blogs, or forums. Make sure you have permission from authors to use their material.
  • [Please contribute]

 

 

Return to Top


Leave a Comment
  • Please add 6 and 4 and type the answer here:
  • Post
Wiki - Revision Comment List(Revision Comment)
Sort by: Published Date | Most Recent | Most Useful
Comments
  • XAML guy edited Revision 4. Comment: counter

  • Livio von Büren edited Revision 3. Comment: just added a dot at the sentence below Community Resources

  • XAML guy edited Revision 2. Comment: tweak

  • XAML guy edited Revision 1. Comment: added

  • XAML guy edited Original. Comment: tidied sections

Page 1 of 1 (5 items)
Wikis - Comment List
Sort by: Published Date | Most Recent | Most Useful
Posting comments is temporarily disabled until 10:00am PST on Saturday, December 14th. Thank you for your patience.
Comments
  • XAML guy edited Original. Comment: tidied sections

  • XAML guy edited Revision 1. Comment: added

  • XAML guy edited Revision 2. Comment: tweak

  • Looks like there's some contexte between this and Mediator.

  • Livio von Büren edited Revision 3. Comment: just added a dot at the sentence below Community Resources

  • XAML guy edited Revision 4. Comment: counter

Page 1 of 1 (6 items)