- Active object
The Active Object
design pattern decouples method execution from method invocation that reside in their own thread of control. [cite book
first = Schmidt
last = D
coauthors = M., Rohnert, H., Buschmann, F.
year = 2000
title = Pattern-Oriented Software Architecture, Volume 2: Patterns for Concurrent and Networked Objects
publisher = John Wiley & Sons
id = ISBN 0-471-60695-2] 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 [cite web
title = Active Object
first = R. Greg
last = Lavender
coauthors = Schmidt, Douglas C.
format = PDF
url = http://www.cs.wustl.edu/~schmidt/PDF/Act-Obj.pdf
accessdate=2007-02-02] :
* 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.ee Also
*
Actor model References
Wikimedia Foundation. 2010.