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

Modify for messaging apireview #26200

Conversation

yiliuTo
Copy link
Member

@yiliuTo yiliuTo commented Dec 28, 2021

Update spring-messaging-azure-* libraries according to api-review results.
Ref:
spring-messaging-azure-servicebus: https://apiview.dev/Assemblies/Review/72aca2ba5bd7413aabc8cbe99e06acf4
spring-messaging-azure-eventhubs: https://apiview.dev/Assemblies/Review/58995c5facde49aa8898510ae955d5b6#
spring-messaging-azure-storage-queue: https://apiview.dev/Assemblies/Review/fba59870bb51473db28b423394a1a75a

@yiliuTo yiliuTo added Client This issue points to a problem in the data-plane of the library. azure-spring All azure-spring related issues labels Dec 28, 2021
@yiliuTo yiliuTo added this to the Spring Cloud Azure 4.0 GA milestone Dec 28, 2021
@@ -137,10 +136,10 @@ protected MessageProducer createConsumerEndpoint(ConsumerDestination destination
buildCheckpointConfig(properties));
}
inboundAdapter.setBeanFactory(getBeanFactory());
String instrumentationId = Instrumentation.buildId(CONSUMER, destination.getName() + "/" + (!INVALID_SUBSCRIPTION.equals(group) ? group : ""));
String instrumentationId = Instrumentation.buildId(CONSUMER, destination.getName() + "/" + (!INVALID_GROUP.equals(group) ? group : ""));
Copy link
Member

Choose a reason for hiding this comment

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

Can we extract a private method for this (!INVALID_GROUP.equals(group) ? group : "")

@yiliuTo
Copy link
Member Author

yiliuTo commented Dec 28, 2021

/azp run java - sping - tests

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@yiliuTo
Copy link
Member Author

yiliuTo commented Dec 28, 2021

/azp run java - spring - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@@ -137,10 +132,10 @@ protected MessageProducer createConsumerEndpoint(ConsumerDestination destination
buildCheckpointConfig(properties));
Copy link
Member

Choose a reason for hiding this comment

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

Seems like here we can adjust the ServiceBusInboundChannelAdapter constructor to always receives destination and group, and decide whether it's a queue internally?

@yiliuTo
Copy link
Member Author

yiliuTo commented Dec 29, 2021

/azp run java - spring - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@saragluna saragluna left a comment

Choose a reason for hiding this comment

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

LGTM.

@yiliuTo yiliuTo merged commit 1991eb6 into Azure:feature/azure-spring-cloud-4.0 Dec 29, 2021
azure-sdk pushed a commit to azure-sdk/azure-sdk-for-java that referenced this pull request Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
azure-spring All azure-spring related issues Client This issue points to a problem in the data-plane of the library.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE REQ] Make message converter of Azure Spring Cloud Event Hubs configurable
2 participants