-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Exposes management node in azure-core-amqp #22095
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
Merged
Merged
Changes from all commits
Commits
Show all changes
60 commits
Select commit
Hold shift + click to select a range
8f8ebf4
Update AmqpConnection to have a getManagementNode.
conniey e9bca38
Adding AmqpManagementNode.
conniey 4772c57
AmqpManagementNode can be closed asynchronously.
conniey de72055
Update AmqpConnection to use AsyncCloseable.
conniey cade086
Adding AsyncCloseable to AmqpLink.
conniey fdf337c
AmqpSession extends from AsyncCloseable.
conniey bfc6945
ClaimsBasedSecurityNode.java uses AsyncCloseable.
conniey 95a9bad
Implements CbsNode's closeAsync() and adds tests.
conniey 810c0bf
ReactorSession implements closeAsync()
conniey a1360ae
ReactorConnection uses closeAsync(). Renames dispose() to closeAsync(…
conniey 13c575a
RequestResponseChannel. Remove close operation with message.
conniey 0868c62
Adding import for Mono in AmqpLink
conniey f734470
Removing unused import
conniey f4f5290
Adding DeliveryOutcome models.
conniey c37553f
Adding delivery state enum
conniey 06d2586
Add authorization scope to connection options.
conniey 859c04c
Add utility to serialize and deserialize AmqpAnnotatedMessage
conniey 7fd706a
Update AmqpManagementNode to expose delivery outcomes because they ca…
conniey 24b84a0
Rename AmqpMessageUtils to MessageUtils
conniey 9e82d11
Adding ReceivedDeliveryOutcome.
conniey acb6f66
Adding additional link to DeliveryState enum.
conniey cde64c7
Adding MessageUtil support for converting DeliveryOutcome and Outcomes.
conniey 963f331
Fixing build breaks from ConnectionOptions.
conniey ede5ead
Adding management channel class.
conniey 5ff8fe5
Adding management node into reactor connection.
conniey 261a8ea
Update ExceptionUtil to return instead of throwing on unknown amqp er…
conniey 7419dd9
Moving ManagementChannel formatting.
conniey 5e27c83
Add javadocs to ReceivedDeliveryOutcome.
conniey a2e5b52
Fix possible NPE in MessageUtils.
conniey 1316667
Add tests for ManagementChannel
conniey 6e61aa3
Adding tests for message utils.
conniey 807f028
Fixing checkstyle issues with imports.
conniey 674faee
Fix checkstyle with logger throwing.
conniey 9d0b395
Fixing spacing on AmqpConnection.
conniey 344025a
Fix javadoc on ModifiedDeliveryOutcome
conniey 5a98198
Fix SpotBug issues in MessageUtils.
conniey 959dc28
ReactorConnection: Hook up dispose method.
conniey eea2f6b
EventHubs: Fixing instances of ConnectionOptions.
conniey cdcd920
Fix build errors using ConnectionOptions.
conniey 9db7990
Change deliverystate to expandable enum
conniey a453928
Update MessageUtils to consider DeliveryState not as enum.
conniey 64558fa
DeliveryStates are final.
conniey 450ccfb
Fix spotbug errors.
conniey 698abe8
Fix NPE when closing connection in SB.
conniey f23815b
Fix spotbug error.
conniey 0d5c7e3
Fix documentation on TransactionalDeliveryOutcome
conniey 112de02
Adding additional tests for MessageUtilsTest
conniey f74e702
Adding MessageUtilsTests.
conniey 32fdcd7
Mapping String to Symbol for maps.
conniey 8652c23
Adding more tests.
conniey e5f556e
Update sdk/core/azure-core-amqp/src/main/java/com/azure/core/amqp/imp…
conniey c3f814c
Adding documentation to DeliveryOutcome.
conniey bdb581c
Updating CHANGELOG.
conniey 5c07227
DeliveryState is final.
conniey ba29460
Add common methods to DeliveryState.
conniey 593cc90
Updating DeliveryOutcome documentation.
conniey 3d02781
Add documentation to management node.
conniey 45c040a
Adds documentation to AmqpConnection
conniey 64e1aa6
Adding test to get management node.
conniey 0b6e749
Add final keyword.
conniey 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 hidden or 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 hidden or 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 hidden or 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
33 changes: 33 additions & 0 deletions
33
sdk/core/azure-core-amqp/src/main/java/com/azure/core/amqp/AmqpManagementNode.java
This file contains hidden or 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,33 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. | ||
|
|
||
| package com.azure.core.amqp; | ||
|
|
||
| import com.azure.core.amqp.models.AmqpAnnotatedMessage; | ||
| import com.azure.core.amqp.models.DeliveryOutcome; | ||
| import com.azure.core.util.AsyncCloseable; | ||
| import reactor.core.publisher.Mono; | ||
|
|
||
| /** | ||
| * An AMQP endpoint that allows users to perform management and metadata operations on it. | ||
| */ | ||
| public interface AmqpManagementNode extends AsyncCloseable { | ||
| /** | ||
| * Sends a message to the management node. | ||
| * | ||
| * @param message Message to send. | ||
| * | ||
| * @return Response from management node. | ||
| */ | ||
| Mono<AmqpAnnotatedMessage> send(AmqpAnnotatedMessage message); | ||
conniey marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| /** | ||
| * Sends a message to the management node and associates the {@code deliveryOutcome} with that message. | ||
| * | ||
| * @param message Message to send. | ||
| * @param deliveryOutcome Delivery outcome to associate with the message. | ||
| * | ||
| * @return Response from management node. | ||
| */ | ||
| Mono<AmqpAnnotatedMessage> send(AmqpAnnotatedMessage message, DeliveryOutcome deliveryOutcome); | ||
| } | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.