Anurag Agarwal fb2c026822 Java 11 migrate remaining e (#1112)
* Moves eip-aggregator to Java 11

* Moves eip-message-channel to Java 11

* Moves eip-publish-subscribe to Java 11

* Moves eip-splitter to Java 11

* Moves eip-wire-tap to Java 11

* Moves event-aggregator to Java 11

* Moves event-asynchronous to Java 11

* Moves event-driven-architecture to Java 11

* Moves event-queue to Java 11

* Moves event-sourcing to Java 11

* Moves execute-around to Java 11

* Moves extension-objects to Java 11
2019-12-09 19:03:30 +02:00
..
2019-12-07 18:03:49 +02:00
2019-12-09 19:03:30 +02:00

layout, title, folder, permalink, categories, tags
layout title folder permalink categories tags
pattern Event Queue event-queue /patterns/event-queue/ Concurrency
Java
Difficulty Intermediate
Queue

Intent

Event Queue is a good pattern if You have a limited accessibility resource (for example: Audio or Database), but You need to handle all the requests that want to use that. It puts all the requests in a queue and process them asynchronously. Gives the resource for the event when it is the next in the queue and in same time removes it from the queue.

Class diagram

alt text

Applicability

Use the Event Queue pattern when

  • You have a limited accessibility resource and the asynchronous process is acceptable to reach that

Credits