|
The active object design pattern decouples method execution from method invocation for objects that each reside in their own thread of control. The goal is to introduce concurrency, by using asynchronous method invocation and a scheduler for handling requests.〔Bass, L., Clements, P., Kazman, R. ''Software Architecture in Practice''. Addison Wesley, 2003〕 The pattern consists of six elements:〔 〕 * A proxy, which provides an interface towards clients with publicly accessible methods. * An interface which defines the method request on an active object. * A list of pending requests from clients. * A scheduler, which decides which request to execute next. * The implementation of the active object method. * A callback or variable for the client to receive the result. == Example == 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「Active object」の詳細全文を読む スポンサード リンク
|