vlingo / xoom-symbio

The VLINGO XOOM platform SDK delivering Reactive storage that is scalable, high-throughput, and resilient for CQRS, Event Sourcing, Key-Value, and Objects used by services and applications.
https://vlingo.io
Mozilla Public License 2.0
40 stars 9 forks source link

Make Journal factory work with implementations that do not use the dispatcher directly #26

Closed jakzal closed 3 years ago

jakzal commented 3 years ago

Addresses #25

For example, JDBCJournalActor now requires two arguments: JDBCJournalInstantWriter and Configuration. It no longer requires Dispatcher.

This patch makes the following work:

Journal.using(stage, JDBCJournalActor.class, configuration, journalInstantWriter)

Any client code still needs to be updated to provide the JDBCJournalInstantWriter instead of Dispatcher. I will take a look at vlingo-symbio-jdbc to see if it's possible to introduce backwards compatibility.