Skip to content

Commit c4451f4

Browse files
authored
Update Javadoc of premium SDK for azure-resourcemanager-servicebus (#43634)
1 parent e92bcf6 commit c4451f4

File tree

13 files changed

+192
-1
lines changed

13 files changed

+192
-1
lines changed

sdk/resourcemanager/azure-resourcemanager-servicebus/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545

4646
--add-opens com.azure.core/com.azure.core.implementation.util=ALL-UNNAMED
4747
</javaModulesSurefireArgLine>
48-
<doclintMissingInclusion>-</doclintMissingInclusion>
4948
</properties>
5049

5150
<developers>

sdk/resourcemanager/azure-resourcemanager-servicebus/src/main/java/com/azure/resourcemanager/servicebus/ServiceBusManager.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ private ServiceBusManager(HttpPipeline httpPipeline, AzureProfile profile) {
9393
}
9494

9595
/**
96+
* Gets the API entry point of the Service Bus namespace management.
97+
*
9698
* @return the Service Bus namespace management API entry point
9799
*/
98100
public ServiceBusNamespaces namespaces() {

sdk/resourcemanager/azure-resourcemanager-servicebus/src/main/java/com/azure/resourcemanager/servicebus/models/AuthorizationKeys.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,29 @@
1313
@Fluent
1414
public interface AuthorizationKeys extends HasInnerModel<AccessKeysInner> {
1515
/**
16+
* Gets the primary key associated with the rule.
17+
*
1618
* @return primary key associated with the rule
1719
*/
1820
String primaryKey();
1921

2022
/**
23+
* Gets the secondary key associated with the rule.
24+
*
2125
* @return secondary key associated with the rule
2226
*/
2327
String secondaryKey();
2428

2529
/**
30+
* Gets the primary connection string.
31+
*
2632
* @return primary connection string
2733
*/
2834
String primaryConnectionString();
2935

3036
/**
37+
* Gets the secondary connection string.
38+
*
3139
* @return secondary connection string
3240
*/
3341
String secondaryConnectionString();

sdk/resourcemanager/azure-resourcemanager-servicebus/src/main/java/com/azure/resourcemanager/servicebus/models/AuthorizationRule.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,23 @@ public interface AuthorizationRule<RuleT extends AuthorizationRule<RuleT>>
2222
extends IndependentChildResource<ServiceBusManager, SBAuthorizationRuleInner>, Refreshable<RuleT> {
2323

2424
/**
25+
* Gets the rights associated with the rule.
26+
*
2527
* @return rights associated with the rule
2628
*/
2729
List<AccessRights> rights();
2830

2931
/**
32+
* Gets a representation of the deferred computation.
33+
*
3034
* @return a representation of the deferred computation of this call,
3135
* returning the primary, secondary keys and the connection strings
3236
*/
3337
Mono<AuthorizationKeys> getKeysAsync();
3438

3539
/**
40+
* Gets the primary, secondary keys and connection strings.
41+
*
3642
* @return the primary, secondary keys and connection strings
3743
*/
3844
AuthorizationKeys getKeys();
@@ -83,6 +89,8 @@ interface DefinitionStages {
8389
*/
8490
interface WithListen<T> {
8591
/**
92+
* Enables listening.
93+
*
8694
* @return the next stage of the definition
8795
*/
8896
T withListeningEnabled();
@@ -95,6 +103,8 @@ interface WithListen<T> {
95103
*/
96104
interface WithSend<T> {
97105
/**
106+
* Enables sending.
107+
*
98108
* @return the next stage of the definition
99109
*/
100110
T withSendingEnabled();
@@ -107,6 +117,8 @@ interface WithSend<T> {
107117
*/
108118
interface WithManage<T> {
109119
/**
120+
* Enables management.
121+
*
110122
* @return the next stage of the definition
111123
*/
112124
T withManagementEnabled();
@@ -141,6 +153,8 @@ interface UpdateStages {
141153
*/
142154
interface WithListen<T> {
143155
/**
156+
* Enables the listening.
157+
*
144158
* @return the next stage of the update
145159
*/
146160
T withListeningEnabled();
@@ -153,6 +167,8 @@ interface WithListen<T> {
153167
*/
154168
interface WithSend<T> {
155169
/**
170+
* Enables sending.
171+
*
156172
* @return the next stage of the update
157173
*/
158174
T withSendingEnabled();
@@ -165,6 +181,8 @@ interface WithSend<T> {
165181
*/
166182
interface WithManage<T> {
167183
/**
184+
* Enables management.
185+
*
168186
* @return the next stage of the update
169187
*/
170188
T withManagementEnabled();

sdk/resourcemanager/azure-resourcemanager-servicebus/src/main/java/com/azure/resourcemanager/servicebus/models/CheckNameAvailabilityResult.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,25 @@
1313
@Fluent
1414
public interface CheckNameAvailabilityResult extends HasInnerModel<CheckNameAvailabilityResultInner> {
1515
/**
16+
* Gets a boolean value that indicates whether the name is available for you to use.
17+
*
1618
* @return a boolean value that indicates whether the name is available for
1719
* you to use. If true, the name is available. If false, the name has
1820
* already been taken or invalid and cannot be used.
1921
*/
2022
boolean isAvailable();
2123

2224
/**
25+
* Gets the unavailabilityReason that a namespace name could not be used.
26+
*
2327
* @return the unavailabilityReason that a namespace name could not be used. The
2428
* Reason element is only returned if NameAvailable is false.
2529
*/
2630
UnavailableReason unavailabilityReason();
2731

2832
/**
33+
* Gets an error message explaining the Reason value in more detail.
34+
*
2935
* @return an error message explaining the Reason value in more detail
3036
*/
3137
String unavailabilityMessage();

sdk/resourcemanager/azure-resourcemanager-servicebus/src/main/java/com/azure/resourcemanager/servicebus/models/NamespaceAuthorizationRule.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
public interface NamespaceAuthorizationRule
1616
extends AuthorizationRule<NamespaceAuthorizationRule>, Updatable<NamespaceAuthorizationRule.Update> {
1717
/**
18+
* Gets the name of the parent namespace name.
19+
*
1820
* @return the name of the parent namespace name
1921
*/
2022
String namespaceName();

sdk/resourcemanager/azure-resourcemanager-servicebus/src/main/java/com/azure/resourcemanager/servicebus/models/NamespaceSku.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,20 +58,26 @@ public NamespaceSku(SBSku sku) {
5858
}
5959

6060
/**
61+
* Gets SKU name.
62+
*
6163
* @return sku name
6264
*/
6365
public SkuName name() {
6466
return this.sku.name();
6567
}
6668

6769
/**
70+
* Gets SKU tier.
71+
*
6872
* @return sku tier
6973
*/
7074
public SkuTier tier() {
7175
return this.sku.tier();
7276
}
7377

7478
/**
79+
* Gets SKU capacity.
80+
*
7581
* @return sku capacity
7682
*/
7783
public int capacity() {

sdk/resourcemanager/azure-resourcemanager-servicebus/src/main/java/com/azure/resourcemanager/servicebus/models/Queue.java

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,122 +22,170 @@
2222
public interface Queue
2323
extends IndependentChildResource<ServiceBusManager, SBQueueInner>, Refreshable<Queue>, Updatable<Queue.Update> {
2424
/**
25+
* Gets the exact time the queue was created.
26+
*
2527
* @return the exact time the queue was created
2628
*/
2729
OffsetDateTime createdAt();
2830

2931
/**
32+
* Gets last time a message was sent, or the last time there was a receive request to this queue.
33+
*
3034
* @return last time a message was sent, or the last time there was a receive request to this queue
3135
*/
3236
OffsetDateTime accessedAt();
3337

3438
/**
39+
* Gets the exact time the queue was updated.
40+
*
3541
* @return the exact time the queue was updated
3642
*/
3743
OffsetDateTime updatedAt();
3844

3945
/**
46+
* Gets the maximum size of memory allocated for the queue in megabytes.
47+
*
4048
* @return the maximum size of memory allocated for the queue in megabytes
4149
*/
4250
long maxSizeInMB();
4351

4452
/**
53+
* Gets current size of the queue.
54+
*
4555
* @return current size of the queue, in bytes
4656
*/
4757
long currentSizeInBytes();
4858

4959
/**
60+
* Checks whether server-side batched operations are enabled.
61+
*
5062
* @return indicates whether server-side batched operations are enabled
5163
*/
5264
boolean isBatchedOperationsEnabled();
5365

5466
/**
67+
* Checks whether this queue has dead letter support when a message expires.
68+
*
5569
* @return indicates whether this queue has dead letter support when a message expires
5670
*/
5771
boolean isDeadLetteringEnabledForExpiredMessages();
5872

5973
/**
74+
* Checks whether express entities are enabled.
75+
*
6076
* @return indicates whether express entities are enabled
6177
*/
6278
boolean isExpressEnabled();
6379

6480
/**
81+
* Checks whether the queue is to be partitioned across multiple message brokers.
82+
*
6583
* @return indicates whether the queue is to be partitioned across multiple message brokers
6684
*/
6785
boolean isPartitioningEnabled();
6886

6987
/**
88+
* Checks whether the queue supports sessions.
89+
*
7090
* @return indicates whether the queue supports sessions
7191
*/
7292
boolean isSessionEnabled();
7393

7494
/**
95+
* Checks whether this queue requires duplicate detection.
96+
*
7597
* @return indicates if this queue requires duplicate detection
7698
*/
7799
boolean isDuplicateDetectionEnabled();
78100

79101
/**
102+
* Gets the duration of peek-lock which is the amount of time that the message is locked for other receivers.
103+
*
80104
* @return the duration of peek-lock which is the amount of time that the message is locked for other receivers
81105
*/
82106
long lockDurationInSeconds();
83107

84108
/**
109+
* Gets the idle duration after which the queue is automatically deleted.
110+
*
85111
* @return the idle duration after which the queue is automatically deleted
86112
*/
87113
long deleteOnIdleDurationInMinutes();
88114

89115
/**
116+
* Gets the duration after which the message expires.
117+
*
90118
* @return the duration after which the message expires, starting from when the message is sent to queue
91119
*/
92120
Duration defaultMessageTtlDuration();
93121

94122
/**
123+
* GEts the duration of the duplicate detection history.
124+
*
95125
* @return the duration of the duplicate detection history
96126
*/
97127
Duration duplicateMessageDetectionHistoryDuration();
98128

99129
/**
130+
* Gets the maximum number of a message delivery before marking it as dead-lettered.
131+
*
100132
* @return the maximum number of a message delivery before marking it as dead-lettered
101133
*/
102134
int maxDeliveryCountBeforeDeadLetteringMessage();
103135

104136
/**
137+
* Gets the number of messages in the queue.
138+
*
105139
* @return the number of messages in the queue
106140
*/
107141
long messageCount();
108142

109143
/**
144+
* Gets number of active messages in the queue.
145+
*
110146
* @return number of active messages in the queue
111147
*/
112148
long activeMessageCount();
113149

114150
/**
151+
* Gets number of messages in the dead-letter queue.
152+
*
115153
* @return number of messages in the dead-letter queue
116154
*/
117155
long deadLetterMessageCount();
118156

119157
/**
158+
* Gets number of messages sent to the queue that are yet to be released for consumption
159+
*
120160
* @return number of messages sent to the queue that are yet to be released
121161
* for consumption
122162
*/
123163
long scheduledMessageCount();
124164

125165
/**
166+
* Gets number of messages transferred into dead letters.
167+
*
126168
* @return number of messages transferred into dead letters
127169
*/
128170
long transferDeadLetterMessageCount();
129171

130172
/**
173+
* Gets number of messages transferred to another queue, topic, or subscription.
174+
*
131175
* @return number of messages transferred to another queue, topic, or subscription
132176
*/
133177
long transferMessageCount();
134178

135179
/**
180+
* Gets the current status of the queue.
181+
*
136182
* @return the current status of the queue
137183
*/
138184
EntityStatus status();
139185

140186
/**
187+
* Gets entry point to manage authorization rules for the Service Bus queue.
188+
*
141189
* @return entry point to manage authorization rules for the Service Bus queue
142190
*/
143191
QueueAuthorizationRules authorizationRules();

sdk/resourcemanager/azure-resourcemanager-servicebus/src/main/java/com/azure/resourcemanager/servicebus/models/QueueAuthorizationRule.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,15 @@
1515
public interface QueueAuthorizationRule
1616
extends AuthorizationRule<QueueAuthorizationRule>, Updatable<QueueAuthorizationRule.Update> {
1717
/**
18+
* Gets the name of the namespace that the parent queue belongs to.
19+
*
1820
* @return the name of the namespace that the parent queue belongs to
1921
*/
2022
String namespaceName();
2123

2224
/**
25+
* Gets the name of the parent queue name.
26+
*
2327
* @return the name of the parent queue name
2428
*/
2529
String queueName();

0 commit comments

Comments
 (0)