Skip to content
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

Enforce withProperties Java API on passthrough messages #2569

Merged
merged 2 commits into from
Feb 3, 2021

Conversation

seglo
Copy link
Member

@seglo seglo commented Feb 3, 2021

A Java API withProperties(properties: java.util.Map[String, Object]) method was missing from several passthrough JMS message types. This PR adds a new trait to enforce its implementation.

sealed trait JmsMessage extends JmsEnvelope[NotUsed] {

def withHeader(jmsHeader: JmsHeader): JmsMessage
sealed trait JmsEnvelopeWithProperties[+PassThrough] extends JmsEnvelope[PassThrough] {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this type parameter PassThrough used ? Or can we make it

sealed trait JmsEnvelopeWithProperties extends JmsEnvelope[NotUsed] {

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's required because it's used in pass through JMS messages. If I omit it then type param errors with the JmsMessage pass through factory methods.

Copy link

@debasishg debasishg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor observation - I don't have enough context. So feel free to ignore .. LGTM

@seglo seglo merged commit dc3f535 into akka:master Feb 3, 2021
@seglo seglo deleted the seglo/jmstextpassthrough-javaapi branch February 3, 2021 19:42
@seglo seglo added this to the 3.0.0-M1 milestone Feb 3, 2021
@seglo
Copy link
Member Author

seglo commented Feb 11, 2021

For the Lightbend customer that identified this issue you can try it out with this snapshot release version 2.0.2+71-10c268dd.

@paltaie
Copy link

paltaie commented Jun 9, 2021

For the Lightbend customer that identified this issue you can try it out with this snapshot release version 2.0.2+71-10c268dd.

That was me, cheers; sorry for 4 month delay :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants