-
Notifications
You must be signed in to change notification settings - Fork 2k
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
SB Track2: Expose AMQP details ServiceBus Messages for sending and receiving. #14848
SB Track2: Expose AMQP details ServiceBus Messages for sending and receiving. #14848
Conversation
sdk/core/azure-core-amqp/src/main/java/com/azure/core/amqp/models/AmqpAnnotatedMessage.java
Outdated
Show resolved
Hide resolved
sdk/core/azure-core-amqp/src/main/java/com/azure/core/amqp/models/AmqpBodyType.java
Outdated
Show resolved
Hide resolved
sdk/core/azure-core-amqp/src/main/java/com/azure/core/amqp/models/AmqpDataBody.java
Outdated
Show resolved
Hide resolved
sdk/core/azure-core-amqp/src/main/java/com/azure/core/amqp/models/AmqpDataBody.java
Outdated
Show resolved
Hide resolved
sdk/core/azure-core-amqp/src/main/java/com/azure/core/amqp/models/AmqpMessageProperties.java
Show resolved
Hide resolved
sdk/core/azure-core-amqp/src/test/java/com/azure/core/amqp/models/AmqpAnnotatedMessageTest.java
Outdated
Show resolved
Hide resolved
sdk/core/azure-core-amqp/src/main/java/com/azure/core/amqp/models/AmqpAnnotatedMessage.java
Outdated
Show resolved
Hide resolved
sdk/core/azure-core-amqp/src/main/java/com/azure/core/amqp/models/AmqpMessageHeader.java
Outdated
Show resolved
Hide resolved
sdk/core/azure-core-amqp/src/main/java/com/azure/core/amqp/models/AmqpMessageHeader.java
Outdated
Show resolved
Hide resolved
sdk/core/azure-core-amqp/src/main/java/com/azure/core/amqp/models/BinaryData.java
Show resolved
Hide resolved
sdk/core/azure-core-amqp/src/main/java/com/azure/core/amqp/models/AmqpMessageHeader.java
Outdated
Show resolved
Hide resolved
sdk/core/azure-core-amqp/src/main/java/com/azure/core/amqp/models/AmqpMessageProperties.java
Outdated
Show resolved
Hide resolved
sdk/core/azure-core-amqp/src/main/java/com/azure/core/amqp/models/BinaryData.java
Show resolved
Hide resolved
sdk/core/azure-core-amqp/src/main/java/com/azure/core/amqp/models/BinaryData.java
Outdated
Show resolved
Hide resolved
sdk/core/azure-core-amqp/src/test/java/com/azure/core/amqp/models/AmqpAnnotatedMessageTest.java
Outdated
Show resolved
Hide resolved
...ure-messaging-servicebus/src/main/java/com/azure/messaging/servicebus/ServiceBusMessage.java
Outdated
Show resolved
Hide resolved
...ure-messaging-servicebus/src/main/java/com/azure/messaging/servicebus/ServiceBusMessage.java
Outdated
Show resolved
Hide resolved
...ure-messaging-servicebus/src/main/java/com/azure/messaging/servicebus/ServiceBusMessage.java
Outdated
Show resolved
Hide resolved
...ure-messaging-servicebus/src/main/java/com/azure/messaging/servicebus/ServiceBusMessage.java
Outdated
Show resolved
Hide resolved
...aging-servicebus/src/main/java/com/azure/messaging/servicebus/ServiceBusReceivedMessage.java
Outdated
Show resolved
Hide resolved
...ing-servicebus/src/main/java/com/azure/messaging/servicebus/ServiceBusMessageSerializer.java
Outdated
Show resolved
Hide resolved
...aging-servicebus/src/main/java/com/azure/messaging/servicebus/ServiceBusReceivedMessage.java
Outdated
Show resolved
Hide resolved
...aging-servicebus/src/main/java/com/azure/messaging/servicebus/ServiceBusReceivedMessage.java
Outdated
Show resolved
Hide resolved
...aging-servicebus/src/main/java/com/azure/messaging/servicebus/ServiceBusReceivedMessage.java
Outdated
Show resolved
Hide resolved
sdk/core/azure-core-amqp/src/main/java/com/azure/core/amqp/models/AmqpDataBody.java
Show resolved
Hide resolved
...servicebus/src/test/java/com/azure/messaging/servicebus/ServiceBusSenderAsyncClientTest.java
Show resolved
Hide resolved
sdk/core/azure-core-amqp/src/main/java/com/azure/core/amqp/models/AmqpMessageHeader.java
Outdated
Show resolved
Hide resolved
sdk/core/azure-core-amqp/src/test/java/com/azure/core/amqp/models/AmqpAnnotatedMessageTest.java
Outdated
Show resolved
Hide resolved
sdk/core/azure-core-amqp/src/test/java/com/azure/core/amqp/models/AmqpAnnotatedMessageTest.java
Outdated
Show resolved
Hide resolved
sdk/core/azure-core-amqp/src/test/java/com/azure/core/amqp/models/AmqpDataBodyTest.java
Show resolved
Hide resolved
...ure-messaging-servicebus/src/main/java/com/azure/messaging/servicebus/ServiceBusMessage.java
Outdated
Show resolved
Hide resolved
...messaging-servicebus/src/test/java/com/azure/messaging/servicebus/ServiceBusMessageTest.java
Show resolved
Hide resolved
...g-servicebus/src/test/java/com/azure/messaging/servicebus/ServiceBusReceivedMessageTest.java
Show resolved
Hide resolved
...c/test/java/com/azure/messaging/servicebus/ServiceBusReceiverAsyncClientIntegrationTest.java
Outdated
Show resolved
Hide resolved
...c/test/java/com/azure/messaging/servicebus/ServiceBusReceiverAsyncClientIntegrationTest.java
Outdated
Show resolved
Hide resolved
...servicebus/src/test/java/com/azure/messaging/servicebus/ServiceBusSenderAsyncClientTest.java
Show resolved
Hide resolved
...ure-messaging-servicebus/src/main/java/com/azure/messaging/servicebus/ServiceBusMessage.java
Outdated
Show resolved
Hide resolved
@@ -353,7 +392,10 @@ public OffsetDateTime getScheduledEnqueueTime() { | |||
* @see #getScheduledEnqueueTime() | |||
*/ | |||
public ServiceBusMessage setScheduledEnqueueTime(OffsetDateTime scheduledEnqueueTime) { | |||
this.scheduledEnqueueTime = scheduledEnqueueTime; | |||
if (scheduledEnqueueTime != null) { |
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.
What if they're trying to clear the scheduledEnqueueTime? Isn't null a value option to pass? Same with other instances.
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.
Internally these key,value pair is stored in Map and Null value is not allowed.
The code on master is also checking for null
and not putting in map is user provided null value.
User can get Map
using amqpAnnotatedMessage.getMessageAnnotations()
and remove a key if they do not want it.
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.
May be worthwhile to document here. it's odd having one method do one thing and then the other do something else.
...ing-servicebus/src/main/java/com/azure/messaging/servicebus/ServiceBusMessageSerializer.java
Outdated
Show resolved
Hide resolved
...ing-servicebus/src/main/java/com/azure/messaging/servicebus/ServiceBusMessageSerializer.java
Outdated
Show resolved
Hide resolved
...ing-servicebus/src/main/java/com/azure/messaging/servicebus/ServiceBusMessageSerializer.java
Show resolved
Hide resolved
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. A couple of comments.
@@ -353,7 +392,10 @@ public OffsetDateTime getScheduledEnqueueTime() { | |||
* @see #getScheduledEnqueueTime() | |||
*/ | |||
public ServiceBusMessage setScheduledEnqueueTime(OffsetDateTime scheduledEnqueueTime) { | |||
this.scheduledEnqueueTime = scheduledEnqueueTime; | |||
if (scheduledEnqueueTime != null) { |
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.
May be worthwhile to document here. it's odd having one method do one thing and then the other do something else.
…ceiving. (Azure#14848) Expose AMQP details ServiceBus Messages for sending and receiving.
* SB Track2: Expose AMQP details ServiceBus Messages for sending and receiving. (#14848) Expose AMQP details ServiceBus Messages for sending and receiving. * Force closes links when connection is closed so it requests another link. (#14990) * Fixing the string format for Dispatch task. * Cleaning up print statements. * Updating text in README.md * Remove getErrors() which overlaps with getEndpointStates(). Only ouputting one terminal state. * Clean up tests and use subscribeWith. * Locally closing on connection error. * Add changelog entry * Update versions. * Update versions for service bus and event hubs * Update CHANGELOG.md Update the date on CHANGELOG Co-authored-by: Hemant Tanwar <hemant_tanwar@hotmail.com>
Expose AMQP details ServiceBus Messages for sending and receiving.
API View : https://apiview.dev/Assemblies/Review/64f40be9988242c9a8facc8a20c5e9e7
fixes #14385