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

[Service Bus] Fix remaining TSDoc errors #13763

Merged
1 commit merged into from
Feb 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sdk/servicebus/service-bus/src/core/linkEntity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export abstract class LinkEntity<LinkT extends Receiver | AwaitableSender | Requ
* is implemented by child classes.
*
* @returns A Promise that resolves when the link has been properly initialized
* @throws {AbortError} if the link has been closed via 'close'
* @throws `AbortError` if the link has been closed via 'close'
*/
async initLink(options: LinkOptionsT<LinkT>, abortSignal?: AbortSignalLike): Promise<void> {
// we'll check that the connection isn't in the process of recycling (and if so, wait for it to complete)
Expand Down
2 changes: 0 additions & 2 deletions sdk/servicebus/service-bus/src/core/messageReceiver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,6 @@ export abstract class MessageReceiver extends LinkEntity<Receiver> {

/**
* Creates a new AMQP receiver under a new AMQP session.
*
* @returns {Promise<void>} Promise<void>.
*/
protected async _init(options: ReceiverOptions, abortSignal?: AbortSignalLike): Promise<void> {
try {
Expand Down
2 changes: 1 addition & 1 deletion sdk/servicebus/service-bus/src/log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { AzureLogger, createClientLogger } from "@azure/logger";
import { AmqpError } from "rhea-promise";

/**
* The @azure/logger configuration for this package.
* The `@azure/logger` configuration for this package.
* This will output logs using the `azure:service-bus` namespace prefix.
* @internal
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { OperationOptions } from "@azure/core-http";
import { getTracer, OperationTracingOptions } from "@azure/core-tracing";

/**
* NOTE: This type is intended to mirror the relevant fields and structure from @azure/core-http OperationOptions
* NOTE: This type is intended to mirror the relevant fields and structure from `@azure/core-http` OperationOptions
*
* Options for configuring tracing and the abortSignal.
*/
Expand Down
8 changes: 4 additions & 4 deletions sdk/servicebus/service-bus/src/receivers/sessionReceiver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export interface ServiceBusSessionReceiver extends ServiceBusReceiver {

/**
* Gets the state of the Session. For more on session states, see
* {@link https://docs.microsoft.com/azure/service-bus-messaging/message-sessions#message-session-state Session State}
* {@link https://docs.microsoft.com/azure/service-bus-messaging/message-sessions#message-session-state | Session State}
* @param options - Options bag to pass an abort signal or tracing options.
* @returns The state of that session
* @throws Error if the underlying connection or receiver is closed.
Expand All @@ -97,7 +97,7 @@ export interface ServiceBusSessionReceiver extends ServiceBusReceiver {

/**
* Sets the state on the Session. For more on session states, see
* {@link https://docs.microsoft.com/azure/service-bus-messaging/message-sessions#message-session-state Session State}
* {@link https://docs.microsoft.com/azure/service-bus-messaging/message-sessions#message-session-state | Session State}
* @param state - The state that needs to be set.
* @param options - Options bag to pass an abort signal or tracing options.
* @throws Error if the underlying connection or receiver is closed.
Expand Down Expand Up @@ -232,7 +232,7 @@ export class ServiceBusSessionReceiverImpl implements ServiceBusSessionReceiver

/**
* Sets the state on the Session. For more on session states, see
* {@link https://docs.microsoft.com/azure/service-bus-messaging/message-sessions#message-session-state Session State}
* {@link https://docs.microsoft.com/azure/service-bus-messaging/message-sessions#message-session-state | Session State}
* @param state - The state that needs to be set.
* @param options - Options bag to pass an abort signal or tracing options.
* @throws Error if the underlying connection or receiver is closed.
Expand Down Expand Up @@ -264,7 +264,7 @@ export class ServiceBusSessionReceiverImpl implements ServiceBusSessionReceiver

/**
* Gets the state of the Session. For more on session states, see
* {@link https://docs.microsoft.com/azure/service-bus-messaging/message-sessions#message-session-state Session State}
* {@link https://docs.microsoft.com/azure/service-bus-messaging/message-sessions#message-session-state | Session State}
* @param options - Options bag to pass an abort signal or tracing options.
* @returns The state of that session
* @throws Error if the underlying connection or receiver is closed.
Expand Down
40 changes: 20 additions & 20 deletions sdk/servicebus/service-bus/src/serviceBusMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,12 @@ export interface ServiceBusMessage {
* The correlation identifier that allows an
* application to specify a context for the message for the purposes of correlation, for example
* reflecting the MessageId of a message that is being replied to.
* See {@link https://docs.microsoft.com/azure/service-bus-messaging/service-bus-messages-payloads?#message-routing-and-correlation Message Routing and Correlation}.
* See {@link https://docs.microsoft.com/azure/service-bus-messaging/service-bus-messages-payloads?#message-routing-and-correlation | Message Routing and Correlation}.
*/
correlationId?: string | number | Buffer;
/**
* The partition key for sending a message to a partitioned entity.
* Maximum length is 128 characters. For {@link https://docs.microsoft.com/azure/service-bus-messaging/service-bus-partitioning partitioned entities},
* Maximum length is 128 characters. For {@link https://docs.microsoft.com/azure/service-bus-messaging/service-bus-partitioning | partitioned entities},
* setting this value enables assigning related messages to the same internal partition,
* so that submission sequence order is correctly recorded. The partition is chosen by a hash
* function over this value and cannot be chosen directly.
Expand All @@ -143,7 +143,7 @@ export interface ServiceBusMessage {
* transfer queue in the scope of a transaction, this value selects the transfer queue partition:
* This is functionally equivalent to `partitionKey` property and ensures that messages are kept
* together and in order as they are transferred.
* See {@link https://docs.microsoft.com/azure/service-bus-messaging/service-bus-transactions#transfers-and-send-via Transfers and Send Via}.
* See {@link https://docs.microsoft.com/azure/service-bus-messaging/service-bus-transactions#transfers-and-send-via | Transfers and Send Via}.
*/

// Will be required later for implementing Transactions
Expand All @@ -155,14 +155,14 @@ export interface ServiceBusMessage {
* the session affiliation of the message. Messages with the same session identifier are subject
* to summary locking and enable exact in-order processing and demultiplexing. For
* session-unaware entities, this value is ignored.
* {@link https://docs.microsoft.com/azure/service-bus-messaging/message-sessions Message Sessions}.
* {@link https://docs.microsoft.com/azure/service-bus-messaging/message-sessions | Message Sessions}.
*/
sessionId?: string;
/**
* The session identifier augmenting the `replyTo` address.
* Maximum length is 128 characters. This value augments the ReplyTo information and specifies
* which SessionId should be set for the reply when sent to the reply entity.
* See {@link https://docs.microsoft.com/azure/service-bus-messaging/service-bus-messages-payloads?#message-routing-and-correlation Message Routing and Correlation}.
* See {@link https://docs.microsoft.com/azure/service-bus-messaging/service-bus-messages-payloads?#message-routing-and-correlation | Message Routing and Correlation}.
*/
replyToSessionId?: string;
/**
Expand All @@ -172,7 +172,7 @@ export interface ServiceBusMessage {
* the assumed value is the DefaultTimeToLive for the respective queue or topic. A message-level
* `timeToLive` value cannot be longer than the entity's DefaultTimeToLive setting and it is
* silently adjusted if it does. See
* {@link https://docs.microsoft.com/azure/service-bus-messaging/message-expiration Expiration}.
* {@link https://docs.microsoft.com/azure/service-bus-messaging/message-expiration | Expiration}.
*/
timeToLive?: number;
/**
Expand All @@ -184,7 +184,7 @@ export interface ServiceBusMessage {
/**
* The "to" address. This property is reserved for future use in routing
* scenarios and presently ignored by the broker itself. Applications can use this value in
* rule-driven {@link https://docs.microsoft.com/azure/service-bus-messaging/service-bus-auto-forwarding auto-forward chaining}
* rule-driven {@link https://docs.microsoft.com/azure/service-bus-messaging/service-bus-auto-forwarding | auto-forward chaining}
* scenarios to indicate the intended logical destination of the message.
*/
to?: string;
Expand All @@ -193,7 +193,7 @@ export interface ServiceBusMessage {
* application-defined value is a standard way to express a reply path to the receiver of the
* message. When a sender expects a reply, it sets the value to the absolute or relative path of
* the queue or topic it expects the reply to be sent to. See
* {@link https://docs.microsoft.com/azure/service-bus-messaging/service-bus-messages-payloads?#message-routing-and-correlation Message Routing and Correlation}.
* {@link https://docs.microsoft.com/azure/service-bus-messaging/service-bus-messages-payloads?#message-routing-and-correlation | Message Routing and Correlation}.
*/
replyTo?: string;
/**
Expand Down Expand Up @@ -368,7 +368,7 @@ export interface ServiceBusReceivedMessage extends ServiceBusMessage {
/**
* The lock token is a reference to the lock that is being held by the broker in
* `peekLock` receive mode. Locks are used internally settle messages as explained in the
* {@link https://docs.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement product documentation in more detail}
* {@link https://docs.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement | product documentation in more detail}
* - Not applicable when the message is received in `receiveAndDelete` receive mode.
* mode.
* @readonly
Expand Down Expand Up @@ -416,7 +416,7 @@ export interface ServiceBusReceivedMessage extends ServiceBusMessage {
*
* **Max safe integer** that Javascript currently supports is `2^53 - 1`. The sequence number
* is an AMQP `Long` type which can be upto 64 bits long. To represent that we are using a
* library named {@link https://github.com/dcodeIO/long.js long.js}. We expect customers
* library named {@link https://github.com/dcodeIO/long.js | long.js}. We expect customers
* to use the **`Long`** type exported by this library.
* @readonly
*/
Expand Down Expand Up @@ -580,7 +580,7 @@ export class ServiceBusMessageImpl implements ServiceBusReceivedMessage {
* application-defined value that uniquely identifies the message and its payload. The identifier
* is a free-form string and can reflect a GUID or an identifier derived from the application
* context. If enabled, the
* {@link https://docs.microsoft.com/azure/service-bus-messaging/duplicate-detection duplicate detection}
* {@link https://docs.microsoft.com/azure/service-bus-messaging/duplicate-detection | duplicate detection}
* identifies and removes second and further submissions of messages with the same MessageId.
*/
messageId?: string | number | Buffer;
Expand All @@ -594,12 +594,12 @@ export class ServiceBusMessageImpl implements ServiceBusReceivedMessage {
* The correlation identifier that allows an
* application to specify a context for the message for the purposes of correlation, for example
* reflecting the MessageId of a message that is being replied to.
* See {@link https://docs.microsoft.com/azure/service-bus-messaging/service-bus-messages-payloads?#message-routing-and-correlation Message Routing and Correlation}.
* See {@link https://docs.microsoft.com/azure/service-bus-messaging/service-bus-messages-payloads?#message-routing-and-correlation | Message Routing and Correlation}.
*/
correlationId?: string | number | Buffer;
/**
* The partition key for sending a message to a
* partitioned entity. Maximum length is 128 characters. For {@link https://docs.microsoft.com/azure/service-bus-messaging/service-bus-partitioning partitioned entities},
* partitioned entity. Maximum length is 128 characters. For {@link https://docs.microsoft.com/azure/service-bus-messaging/service-bus-partitioning | partitioned entities},
* setting this value enables assigning related messages to the same internal partition,
* so that submission sequence order is correctly recorded. The partition is chosen by a hash
* function over this value and cannot be chosen directly. For session-aware entities,
Expand All @@ -612,7 +612,7 @@ export class ServiceBusMessageImpl implements ServiceBusReceivedMessage {
* transfer queue in the scope of a transaction, this value selects the transfer queue partition:
* This is functionally equivalent to `partitionKey` property and ensures that messages are kept
* together and in order as they are transferred.
* See {@link https://docs.microsoft.com/azure/service-bus-messaging/service-bus-transactions#transfers-and-send-via Transfers and Send Via}.
* See {@link https://docs.microsoft.com/azure/service-bus-messaging/service-bus-transactions#transfers-and-send-via | Transfers and Send Via}.
*/
// Will be required later for implementing Transactions
// viaPartitionKey?: string;
Expand All @@ -622,14 +622,14 @@ export class ServiceBusMessageImpl implements ServiceBusReceivedMessage {
* the session affiliation of the message. Messages with the same session identifier are subject
* to summary locking and enable exact in-order processing and demultiplexing. For
* session-unaware entities, this value is ignored.
* {@link https://docs.microsoft.com/azure/service-bus-messaging/message-sessions Message Sessions}.
* {@link https://docs.microsoft.com/azure/service-bus-messaging/message-sessions | Message Sessions}.
*/
sessionId?: string;
/**
* The session identifier augmenting the `replyTo` address.
* Maximum length is 128 characters. This value augments the ReplyTo information and specifies
* which SessionId should be set for the reply when sent to the reply entity.
* See {@link https://docs.microsoft.com/azure/service-bus-messaging/service-bus-messages-payloads?#message-routing-and-correlation Message Routing and Correlation}.
* See {@link https://docs.microsoft.com/azure/service-bus-messaging/service-bus-messages-payloads?#message-routing-and-correlation | Message Routing and Correlation}.
*/
replyToSessionId?: string;
/**
Expand All @@ -639,7 +639,7 @@ export class ServiceBusMessageImpl implements ServiceBusReceivedMessage {
* the assumed value is the DefaultTimeToLive for the respective queue or topic. A message-level
* `timeToLive` value cannot be longer than the entity's DefaultTimeToLive setting and it is
* silently adjusted if it does. See
* {@link https://docs.microsoft.com/azure/service-bus-messaging/message-expiration Expiration}.
* {@link https://docs.microsoft.com/azure/service-bus-messaging/message-expiration | Expiration}.
*/
timeToLive?: number;
/**
Expand All @@ -651,7 +651,7 @@ export class ServiceBusMessageImpl implements ServiceBusReceivedMessage {
/**
* The "to" address. This property is reserved for future use in routing
* scenarios and presently ignored by the broker itself. Applications can use this value in
* rule-driven {@link https://docs.microsoft.com/azure/service-bus-messaging/service-bus-auto-forwarding auto-forward chaining}
* rule-driven {@link https://docs.microsoft.com/azure/service-bus-messaging/service-bus-auto-forwarding | auto-forward chaining}
* scenarios to indicate the intended logical destination of the message.
*/
to?: string;
Expand All @@ -660,7 +660,7 @@ export class ServiceBusMessageImpl implements ServiceBusReceivedMessage {
* application-defined value is a standard way to express a reply path to the receiver of the
* message. When a sender expects a reply, it sets the value to the absolute or relative path of
* the queue or topic it expects the reply to be sent to. See
* {@link https://docs.microsoft.com/azure/service-bus-messaging/service-bus-messages-payloads?#message-routing-and-correlation Message Routing and Correlation}.
* {@link https://docs.microsoft.com/azure/service-bus-messaging/service-bus-messages-payloads?#message-routing-and-correlation | Message Routing and Correlation}.
*/
replyTo?: string;
/**
Expand All @@ -675,7 +675,7 @@ export class ServiceBusMessageImpl implements ServiceBusReceivedMessage {
/**
* The lock token is a reference to the lock that is being held by the broker in
* `peekLock` receive mode. Locks are used internally settle messages as explained in the
* {@link https://docs.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement product documentation in more detail}
* {@link https://docs.microsoft.com/azure/service-bus-messaging/message-transfers-locks-settlement | product documentation in more detail}
* - Not applicable when the message is received in `receiveAndDelete` receive mode.
* mode.
* @readonly
Expand Down
2 changes: 1 addition & 1 deletion sdk/servicebus/service-bus/src/serviceBusMessageBatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export interface ServiceBusMessageBatch {
* The maximum size of the batch, in bytes. The `tryAddMessage` function on the batch will return `false`
* if the message being added causes the size of the batch to exceed this limit. Use the `createMessageBatch()` method on
* the `Sender` to set the maxSizeInBytes.
* @readonly.
* @readonly
*/
readonly maxSizeInBytes: number;

Expand Down
6 changes: 3 additions & 3 deletions sdk/servicebus/service-bus/src/session/messageSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,21 +92,21 @@ export class MessageSession extends LinkEntity<Receiver> {
*/
receiveMode: ReceiveMode;
/**
* {boolean} autoComplete Indicates whether `Message.complete()` should be called
* Indicates whether `Message.complete()` should be called
* automatically after the message processing is complete while receiving messages with handlers.
* Default: false.
*/
autoComplete: boolean;
/**
* {number} maxAutoRenewDurationInMs The maximum duration within which the
* The maximum duration within which the
* lock will be renewed automatically. This value should be greater than the longest message
* lock duration; for example, the `lockDuration` property on the received message.
*
* Default: `300 * 1000` (5 minutes);
*/
maxAutoRenewDurationInMs: number;
/**
* {boolean} autoRenewLock Should lock renewal happen automatically.
* Should lock renewal happen automatically.
*/
autoRenewLock: boolean;
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { parseConnectionString } from "@azure/core-amqp";
export interface ServiceBusConnectionStringProperties {
/**
* The fully qualified Service Bus namespace extracted from the "Endpoint" in the
* connection string. This is likely to be similar to "{yournamespace}.servicebus.windows.net".
* connection string. This is likely to be similar to `{yournamespace}.servicebus.windows.net`.
* This is typically used to construct the ServiceBusClient.
*/
fullyQualifiedNamespace: string;
Expand Down