apache / pekko-samples

Apache Pekko Sample Projects
https://pekko.apache.org/
Apache License 2.0
42 stars 21 forks source link

Created WorkResultConsumerActor for handling published events #67

Closed mario-renau-a closed 1 year ago

mario-renau-a commented 1 year ago

A new WorkResultConsumerActor has been added to handle the processing of published events. This actor will receive events and process them accordingly based on their types (WorkAccepted, WorkStarted, etc.). Also, the WorkManager.scala file was slightly modified to enable event publishing. In Main.scala, a method createWorkResultsConsumer was added to initiate the WorkResultConsumerActor and subscribe it to the event stream. With these changes, all published events will now be handled properly by WorkResultConsumerActor.