AxonIQ / console-framework-client

Client for Axon Framework to connect to AxonIQ Console
https://console.axoniq.io/
Apache License 2.0
0 stars 0 forks source link

Return `PersistentStreamMessageSourceInformation` during setup-payload when Persistent Streams are used #89

Closed smcvb closed 1 month ago

smcvb commented 1 month ago

This pull request ensures that when a user has persistent streams configured, the SetupPayloadCreator will return a dedicated MessageSourceInformation instance.

This new implementation is the PersistentStreamMessageSourceInformation, containing all static information of a persistent stream. Hence, the streamName and segmentCount are not included in the setup-payload. That information should be provided on the Processors page but will follow in another pull request.

Next to adding the PersistentStreamMessageSourceInformation, I have adjusted the SetupPayloadCreator to invoke a specific mapSubscribableMessageSource to map the SubscribableMessageSource (which may be a persistent streams implementation) to a MessageSourceInformation. Before this pull request, the SetupPayloadCreator simply assumed the message source was an implementation of the StreamableMessageSource at all times. This is, obviously, not the case when a PersistentStreamMessageSource is set for a SubscribingEventProcessor.

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud