Flags with deferred use

Posted by Trenton Maki on Programmers See other posts from Programmers or by Trenton Maki
Published on 2014-05-27T18:43:19Z Indexed on 2014/05/28 4:00 UTC
Read the original article Hit count: 218

Filed under:
|

Let's say I have a system. In this system I have a number of operations I can do but all of these operations have to happen as a batch at a certain time, while calls to activate and deactivate these operations can come in at any time. To implement this, I could use flags like doOperation1 and doOperation2 but this seems like it would become difficult to maintain. Is there a design pattern, or something similar, that addresses this situation?

© Programmers or respective owner

Related posts about design

Related posts about design-patterns