Balking pattern |
The Balking pattern is a design pattern (computer science) that only executes an action on an object (computer science) when the object is in a particular state. For example, if an object reads ZIP file format files and a calling method invokes a get method on the object when the ZIP file is not open, the object would balk at the request. In Java programming language, an IllegalStateException could be thrown.
==See also== *Read and write lock pattern *Guarded suspension|
|