Refactor[mqbblp::Cluster]: use concrete event types#448
Merged
678098 merged 1 commit intobloomberg:mainfrom Oct 24, 2024
Merged
Refactor[mqbblp::Cluster]: use concrete event types#448678098 merged 1 commit intobloomberg:mainfrom
678098 merged 1 commit intobloomberg:mainfrom
Conversation
698c5f6 to
5785ac4
Compare
678098
commented
Oct 8, 2024
| void onPutEvent(const mqbi::DispatcherEvent& event); | ||
| void onPutEvent(const mqbi::DispatcherPutEvent& event); | ||
|
|
||
| void onRelayPutEvent(const mqbi::DispatcherEvent& event); |
Collaborator
Author
There was a problem hiding this comment.
This method is the only exception for this refactor
Signed-off-by: Evgeny Malygin <emalygin@bloomberg.net>
5785ac4 to
d6836a2
Compare
Collaborator
Author
|
@kaikulimu rebased after MWC migration |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR updates interfaces for
mqbblp::Cluster::on[...]Event, by putting concrete event types in the args.It allows to get rid of excessive assert check within these methods like
BSLS_ASSERT_SAFE(mqbi::DispatcherEventType::e_CONFIRM == event.type());It also allows to get rid of accessing for a concrete event type the second time like
const mqbi::DispatcherPushEvent* realEvent = event.asPushEvent();This PR also restores missing checks for being in dispatcher thread.
The only exception to (1) is
void onRelayPutEvent(const mqbi::DispatcherEvent& event);which usessource()accessorThis is a preparation PR for #396