-
Notifications
You must be signed in to change notification settings - Fork 645
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added withHeader(s) withProperty(-ies) and withoutDestination methods… #1830
Conversation
fce7708
to
c96d5dd
Compare
I added some MiMa problem filters because of the newly added methods, did I add these in the right place? |
ProblemFilters.exclude[ReversedMissingMethodProblem]("akka.stream.alpakka.jms.JmsMessage.withHeaders") | ||
ProblemFilters.exclude[ReversedMissingMethodProblem]("akka.stream.alpakka.jms.JmsMessage.withProperties") | ||
ProblemFilters.exclude[ReversedMissingMethodProblem]("akka.stream.alpakka.jms.JmsMessage.withHeader") | ||
ProblemFilters.exclude[ReversedMissingMethodProblem]("akka.stream.alpakka.jms.JmsMessage.withoutDestination") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These have to go to a separate file named by the latest released, so 1.1.0.backwards.excludes
… to the JmsMessage trait.
c96d5dd
to
e949a62
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Lets schedule this for the upcoming 2.0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
One question, this is now targeted for 2.0, however this PR is actually backwards binary compatible, but not forwards binary compatible. Or do I get this wrong? The only difference with #1752, is that this PR also adds methods to the |
We now start merging things for Alpakka 2.0 after the 1.1.1 release. |
…thods to the JmsMessage trait. (akka#1830)
Backported for 1.1.2 with #1974 |
This is an addition to the functionality added to #1752 the withProperties method is now available on the
JmsMessage
trait, as well as withHeaders and withDestination.All these methods are implemented such that the subtypes return their own subtype. E.g.
JmsTextMessage.withProperties
previously returnedJmsTextMessagePassThrough[NotUsed]
instead ofJmsTextMessage