Location : Home >> Wikipedia >> Proactor pattern

Search Wikipedia

Proactor pattern

From Wikipedia, licensed under CC BY-SA 4.0. View the original article on Wikipedia.

Software design pattern for event handling
icon
This article needs more citations. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "Proactor pattern" – news · newspapers · books · scholar · JSTOR
(August 2026) (Learn how and when to remove this message)

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

UML Sequence diagram of Proactor

Operation 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

See also

  • Reactor pattern (a pattern that also asynchronously queues events, but demultiplexes and dispatches them synchronously)

References

  1. ^ 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.
  2. ^ Pattern-Oriented Software Architecture, Volume 2, Schmidt et al., Jon Wiley & Sons, Ltd, 2000

External links

Gang of Four
patterns
Creational
Structural
Behavioral
Concurrency
patterns
Architectural
patterns
Other
patterns
Books
People
Communities
See also


Stub icon

This software-engineering-related article is a stub. You can help Wikipedia by adding missing information.

Text is from Wikipedia, licensed under CC BY-SA 4.0. A link to the original article is included on every page. Original article. Search Wikipedia on nomadlouie.com.