-
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
[Storage] Queue message encoding #19328
Merged
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
6d24c99
settings.
kasobol-msft 16d701f
internal model.
kasobol-msft be03051
wip.
kasobol-msft 1444ce8
decoding.
kasobol-msft 81e762f
encode message.
kasobol-msft 7bdd8cb
enqueue/dequeue tests.
kasobol-msft 6fefc92
recording.
kasobol-msft 4c31940
undo models.
kasobol-msft ab6ce4f
more tests.
kasobol-msft b5b85d9
handler tests.
kasobol-msft d50f144
bundle failure args.
kasobol-msft 8ebe4c4
checkstyle.
kasobol-msft a4564a2
checkstyle.
kasobol-msft 085f9ab
readme.
kasobol-msft 87440c2
expose queue client.
kasobol-msft e3762ef
handler sample.
kasobol-msft 2ccec4d
CHANGELOG.md
kasobol-msft 8756948
Merge remote-tracking branch 'upstream/master' into queues-encoding
kasobol-msft 01f0a4e
Merge remote-tracking branch 'upstream/master' into queues-encoding
kasobol-msft d5fa36b
fix npe.
kasobol-msft ca591ad
some of pr feedback.
kasobol-msft 19b52ca
one more test.
kasobol-msft 4ee43ed
two handlers.
kasobol-msft 7ed5124
pr feedback.
kasobol-msft 5640f8c
pr feedback.
kasobol-msft File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
282 changes: 260 additions & 22 deletions
282
sdk/storage/azure-storage-queue/src/main/java/com/azure/storage/queue/QueueAsyncClient.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
23 changes: 23 additions & 0 deletions
23
...orage/azure-storage-queue/src/main/java/com/azure/storage/queue/QueueMessageEncoding.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
|
||
package com.azure.storage.queue; | ||
|
||
/** | ||
* Determines how queue message body is represented in HTTP requests and responses. | ||
*/ | ||
public enum QueueMessageEncoding { | ||
/** | ||
* The queue message body is represented verbatim in HTTP requests and responses. I.e. message is not transformed. | ||
*/ | ||
NONE, | ||
|
||
/** | ||
* The queue message body is represented as Base64 encoded string in HTTP requests and responses. | ||
* <p> | ||
* This was the default behavior in the prior v8 and v11 library. | ||
* Using this option can make interop with an existing application easier. | ||
*/ | ||
BASE64 | ||
} |
Oops, something went wrong.
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.
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.
Do we plan on adding more encoding formats? If so, this should be ExpandableStringEnum.
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.
Unlikely. Besides per https://azure.github.io/azure-sdk/java_introduction.html#enumerations I don't think this is a case for ExpandableStringEnum . The message encoding is client side concept and we don't expect neither service nor user to provide values that are unknown at given SDK version. Therefore I think normal enum is good fit.