proactor pattern
Q142948Snapshot
≈ 2 min read
Names in other languages
- MagyarProactor programtervezési minta
- Englishproactor pattern
- nbproaktørmønsterproaktør
- 日本語Proactor パターン
- DeutschProactor
Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.
Proactor is a software design pattern for event handling in which long running activities are running in an asynchronous part.[1] A completion handler is called after the asynchronous part has terminated. The proactor pattern can be considered to be an asynchronous variant of the synchronous reactor pattern.[2]
Interaction
edit edit sourceOperation specific actors:
- The Proactive Initiator starts the asynchronous operation via the Asynchronous Operation Processor and defines the Completion Handler
- Completion Handler is a call at the end of the operation from the Asynchronous Operation Processor
- Asynchronous Operation
Standardized actors
- The Asynchronous Operation Processor controls the whole asynchronous operation
- The Completion Dispatcher handles the call, depending on the execution environment.
Implementations
edit edit sourceSee also
edit edit source- Reactor pattern (a pattern that also asynchronously queues events, but demultiplexes and dispatches them synchronously)
References
edit edit source- ^ Pyarali, Irfan; Harrison, Tim (September 1997). Proactor: An Object Behavioral Pattern for Demultiplexing and Dispatching Handlers for Asynchronous Events (PDF). 4th Annual Pattern Languages of Programming Conference. Allerton Park, Illinois.
- ^ Pattern-Oriented Software Architecture, Volume 2, Schmidt et al., Jon Wiley & Sons, Ltd, 2000
External links
edit edit source- Proactor - An Object Behavioral Pattern for Demultiplexing and Dispatching Handlers for Asynchronous Events, Irfan Pyarali, Tim Harrison, Douglas C. Schmidt, Thomas D. Jordan, 1997 (pdf 143 kB)
patterns
patterns
patterns
patterns
Text derived from https://en.wikipedia.org/w/index.php?oldid=1375194890 under CC BY-SA 4.0; modifications have been made.