Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Proactor pattern

From Wikipedia, the free encyclopedia
Software design pattern for event handling
icon
This articlerelies largely or entirely on asingle source. Relevant discussion may be found on thetalk page. Please helpimprove this article byintroducing citations to additional sources.
Find sources: "Proactor pattern" – news ·newspapers ·books ·scholar ·JSTOR
(March 2024)

Proactor is asoftware design pattern forevent handling in which long running activities are running in an asynchronous part. Acompletion handler is called after the asynchronous part has terminated. The proactor pattern can be considered to be anasynchronous variant of thesynchronousreactor pattern.[1]

Interaction

[edit]
UMLSequence diagram of Proactor

Operation specific actors:

  • TheProactive 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

  • TheAsynchronous Operation Processor controls the whole asynchronous operation
  • TheCompletion Dispatcher handles the call, depending on the execution environment.

Implementations

[edit]

See also

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

References

[edit]
  1. ^Pattern-Oriented Software Architecture, Volume 2, Schmidt et al., Jon Wiley & Sons, Ltd, 2000

External links

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


Stub icon

Thissoftware-engineering-related article is astub. You can help Wikipedia byadding missing information.

Retrieved from "https://en.wikipedia.org/w/index.php?title=Proactor_pattern&oldid=1296969124"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp