Jump to content

Proactor pattern

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 81.227.169.254 (talk) at 11:32, 16 August 2009. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Proactor is a software design pattern for Event handling in which long running activities are running in an asynchronous part. A Completion Handler is called after the asynchronous part has terminated.

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.