Proactor

from Wikipedia, the free encyclopedia

Proactor is a design pattern from the field of software development for event processing (Event Handling Pattern) that uses concurrency and avoids its disadvantages.

Long-running actions are processed in an asynchronous part and a completion handler is called at the end of the asynchronous part .

Interactions

Proactor interaction as UML sequence diagram

Operation-specific actors:

  • The Proactive Initiator starts the asynchronous operation on the Asynchronous Operation Processor and also defines the Completion Handler
  • The completion handler is called at the end of the operation by the asynchronous operation processor
  • Asynchronous operation

Standardized actors of the proactor pattern

  • The Asynchronous Operation Processor coordinates the entire asynchronous operation
  • The Completion Dispatcher handles, depending on the execution environment, calling the completion handler from

Web links