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

[docs] Format and examples to specify a tenant/namespace for a topic. #11526

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
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
6 changes: 3 additions & 3 deletions site2/docs/client-libraries-node.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ Here is an example:

```JavaScript
const producer = await client.createProducer({
topic: 'my-topic',
topic: 'my-topic', // or 'my-tenant/my-namespace/my-topic' to specify topic's property and namespace
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
topic: 'my-topic', // or 'my-tenant/my-namespace/my-topic' to specify topic's property and namespace
topic: 'my-topic', // or 'my-tenant/my-namespace/my-topic' to specify topic's tenant and namespace

});

await producer.send({
Expand Down Expand Up @@ -137,7 +137,7 @@ Pulsar Node.js producers have the following methods available:

| Parameter | Description | Default |
| :-------- | :---------- | :------ |
| `topic` | The Pulsar [topic](reference-terminology.md#topic) to which the producer publishes messages. | |
| `topic` | The Pulsar [topic](reference-terminology.md#topic) to which the producer publishes messages. Format: `<topic-name>` or `<property(tenant)>/<namespace>/<topic-name>`. E.g.: `sample/ns1/my-topic` | |
vsly-ru marked this conversation as resolved.
Show resolved Hide resolved
| `producerName` | A name for the producer. If you do not explicitly assign a name, Pulsar automatically generates a globally unique name. If you choose to explicitly assign a name, it needs to be unique across *all* Pulsar clusters, otherwise the creation operation throws an error. | |
| `sendTimeoutMs` | When publishing a message to a topic, the producer waits for an acknowledgment from the responsible Pulsar [broker](reference-terminology.md#broker). If a message is not acknowledged within the threshold set by this parameter, an error is thrown. If you set `sendTimeoutMs` to -1, the timeout is set to infinity (and thus removed). Removing the send timeout is recommended when using Pulsar's [message de-duplication](cookbooks-deduplication.md) feature. | 30000 |
| `initialSequenceId` | The initial sequence ID of the message. When producer send message, add sequence ID to message. The ID is increased each time to send. | |
Expand Down Expand Up @@ -594,4 +594,4 @@ This section provides step-by-step instructions on how to use the end-to-end enc
my-message-7
my-message-8
my-message-9
```
```