From bd4b5cfda38d1661e8590efc5cfb84b4d2e5388e Mon Sep 17 00:00:00 2001 From: visortelle Date: Sat, 2 Mar 2024 22:12:21 +0400 Subject: [PATCH] Fix broken link --- docs/txn-use.md | 20 ++++++++++---------- versioned_docs/version-3.0.x/txn-use.md | 18 +++++++++--------- versioned_docs/version-3.1.x/txn-use.md | 18 +++++++++--------- versioned_docs/version-3.2.x/txn-use.md | 20 ++++++++++---------- 4 files changed, 38 insertions(+), 38 deletions(-) diff --git a/docs/txn-use.md b/docs/txn-use.md index 61965ffd5352..615e2eab285d 100644 --- a/docs/txn-use.md +++ b/docs/txn-use.md @@ -5,22 +5,22 @@ sidebar_label: "Get started" description: Get started to use Pulsar transaction API. --- -Pulsar transaction is primarily a server-side and protocol-level feature. This tutorial guides you through every step of how to use the [Pulsar transaction API](/api/admin/) to send and receive messages in a Java client. +Pulsar transaction is primarily a server-side and protocol-level feature. This tutorial guides you through every step of how to use the [Pulsar transaction API](/api/admin/) to send and receive messages in a Java client. :::note -Currently, [Pulsar transaction API](/api/admin/) is available in **Pulsar 2.8.0 or later** versions. It is only available for **Java** clients. +Currently, [Pulsar transaction API](/api/admin/) is available in **Pulsar 2.8.0 or later** versions. It is only available for **Java** clients. ::: ## Prerequisites -- [Start Pulsar 2.8.0 or later versions](#getting-started-standalone.md) +- [Start Pulsar 2.8.0 or later versions](getting-started-standalone.md) ## Steps To use Pulsar transaction API, complete the following steps. -1. Enable transactions. +1. Enable transactions. You can set the following configurations in the [`broker.conf`](https://github.com/apache/pulsar/blob/master/conf/broker.conf) or [`standalone.conf`](https://github.com/apache/pulsar/blob/master/conf/standalone.conf) file. @@ -55,7 +55,7 @@ To use Pulsar transaction API, complete the following steps. ``` 3. Create a Pulsar client and enable transactions. - + 4. Create producers and consumers. 5. Produce and receive messages. @@ -111,11 +111,11 @@ To use Pulsar transaction API, complete the following steps. // Step 5: consume messages and produce them to output topics with transactions. for (int i = 0; i < count; i++) { - // Step 5: the consumer successfully receives messages. + // Step 5: the consumer successfully receives messages. Message message = inputConsumer.receive(); - - // Step 6: create transactions. - // The transaction timeout is specified as 10 seconds. + + // Step 6: create transactions. + // The transaction timeout is specified as 10 seconds. // If the transaction is not committed within 10 seconds, the transaction is automatically aborted. Transaction txn = null; try { @@ -172,4 +172,4 @@ To use Pulsar transaction API, complete the following steps. ## Related topics -- To learn more features that can be used with transactions, see [Pulsar transactions - Advanced features](txn-advanced-features.md). \ No newline at end of file +- To learn more features that can be used with transactions, see [Pulsar transactions - Advanced features](txn-advanced-features.md). diff --git a/versioned_docs/version-3.0.x/txn-use.md b/versioned_docs/version-3.0.x/txn-use.md index 08f5baa163c2..324a8dc67d6f 100644 --- a/versioned_docs/version-3.0.x/txn-use.md +++ b/versioned_docs/version-3.0.x/txn-use.md @@ -4,16 +4,16 @@ title: Get started sidebar_label: "Get started" --- -Pulsar transaction is primarily a server-side and protocol-level feature. This tutorial guides you through every step of how to use the [Pulsar transaction API](/api/admin/) to send and receive messages in a Java client. +Pulsar transaction is primarily a server-side and protocol-level feature. This tutorial guides you through every step of how to use the [Pulsar transaction API](/api/admin/) to send and receive messages in a Java client. :::note -Currently, [Pulsar transaction API](/api/admin/) is available in **Pulsar 2.8.0 or later** versions. It is only available for **Java** clients. +Currently, [Pulsar transaction API](/api/admin/) is available in **Pulsar 2.8.0 or later** versions. It is only available for **Java** clients. ::: ## Prerequisites -- [Start Pulsar 2.8.0 or later versions](#getting-started-standalone.md) +- [Start Pulsar 2.8.0 or later versions](getting-started-standalone.md) ## Steps @@ -50,7 +50,7 @@ Currently, [Pulsar transaction API](/api/admin/) is available in **Pulsar 2.8.0 ``` 3. Create a Pulsar client and enable transactions. - + 4. Create producers and consumers. 5. Produce and receive messages. @@ -106,11 +106,11 @@ Currently, [Pulsar transaction API](/api/admin/) is available in **Pulsar 2.8.0 // Step 5: consume messages and produce them to output topics with transactions. for (int i = 0; i < count; i++) { - // Step 5: the consumer successfully receives messages. + // Step 5: the consumer successfully receives messages. Message message = inputConsumer.receive(); - - // Step 6: create transactions. - // The transaction timeout is specified as 10 seconds. + + // Step 6: create transactions. + // The transaction timeout is specified as 10 seconds. // If the transaction is not committed within 10 seconds, the transaction is automatically aborted. Transaction txn = null; try { @@ -167,4 +167,4 @@ Currently, [Pulsar transaction API](/api/admin/) is available in **Pulsar 2.8.0 ## Related topics -- To learn more features that can be used with transactions, see [Pulsar transactions - Advanced features](txn-advanced-features.md). \ No newline at end of file +- To learn more features that can be used with transactions, see [Pulsar transactions - Advanced features](txn-advanced-features.md). diff --git a/versioned_docs/version-3.1.x/txn-use.md b/versioned_docs/version-3.1.x/txn-use.md index 08f5baa163c2..324a8dc67d6f 100644 --- a/versioned_docs/version-3.1.x/txn-use.md +++ b/versioned_docs/version-3.1.x/txn-use.md @@ -4,16 +4,16 @@ title: Get started sidebar_label: "Get started" --- -Pulsar transaction is primarily a server-side and protocol-level feature. This tutorial guides you through every step of how to use the [Pulsar transaction API](/api/admin/) to send and receive messages in a Java client. +Pulsar transaction is primarily a server-side and protocol-level feature. This tutorial guides you through every step of how to use the [Pulsar transaction API](/api/admin/) to send and receive messages in a Java client. :::note -Currently, [Pulsar transaction API](/api/admin/) is available in **Pulsar 2.8.0 or later** versions. It is only available for **Java** clients. +Currently, [Pulsar transaction API](/api/admin/) is available in **Pulsar 2.8.0 or later** versions. It is only available for **Java** clients. ::: ## Prerequisites -- [Start Pulsar 2.8.0 or later versions](#getting-started-standalone.md) +- [Start Pulsar 2.8.0 or later versions](getting-started-standalone.md) ## Steps @@ -50,7 +50,7 @@ Currently, [Pulsar transaction API](/api/admin/) is available in **Pulsar 2.8.0 ``` 3. Create a Pulsar client and enable transactions. - + 4. Create producers and consumers. 5. Produce and receive messages. @@ -106,11 +106,11 @@ Currently, [Pulsar transaction API](/api/admin/) is available in **Pulsar 2.8.0 // Step 5: consume messages and produce them to output topics with transactions. for (int i = 0; i < count; i++) { - // Step 5: the consumer successfully receives messages. + // Step 5: the consumer successfully receives messages. Message message = inputConsumer.receive(); - - // Step 6: create transactions. - // The transaction timeout is specified as 10 seconds. + + // Step 6: create transactions. + // The transaction timeout is specified as 10 seconds. // If the transaction is not committed within 10 seconds, the transaction is automatically aborted. Transaction txn = null; try { @@ -167,4 +167,4 @@ Currently, [Pulsar transaction API](/api/admin/) is available in **Pulsar 2.8.0 ## Related topics -- To learn more features that can be used with transactions, see [Pulsar transactions - Advanced features](txn-advanced-features.md). \ No newline at end of file +- To learn more features that can be used with transactions, see [Pulsar transactions - Advanced features](txn-advanced-features.md). diff --git a/versioned_docs/version-3.2.x/txn-use.md b/versioned_docs/version-3.2.x/txn-use.md index 61965ffd5352..615e2eab285d 100644 --- a/versioned_docs/version-3.2.x/txn-use.md +++ b/versioned_docs/version-3.2.x/txn-use.md @@ -5,22 +5,22 @@ sidebar_label: "Get started" description: Get started to use Pulsar transaction API. --- -Pulsar transaction is primarily a server-side and protocol-level feature. This tutorial guides you through every step of how to use the [Pulsar transaction API](/api/admin/) to send and receive messages in a Java client. +Pulsar transaction is primarily a server-side and protocol-level feature. This tutorial guides you through every step of how to use the [Pulsar transaction API](/api/admin/) to send and receive messages in a Java client. :::note -Currently, [Pulsar transaction API](/api/admin/) is available in **Pulsar 2.8.0 or later** versions. It is only available for **Java** clients. +Currently, [Pulsar transaction API](/api/admin/) is available in **Pulsar 2.8.0 or later** versions. It is only available for **Java** clients. ::: ## Prerequisites -- [Start Pulsar 2.8.0 or later versions](#getting-started-standalone.md) +- [Start Pulsar 2.8.0 or later versions](getting-started-standalone.md) ## Steps To use Pulsar transaction API, complete the following steps. -1. Enable transactions. +1. Enable transactions. You can set the following configurations in the [`broker.conf`](https://github.com/apache/pulsar/blob/master/conf/broker.conf) or [`standalone.conf`](https://github.com/apache/pulsar/blob/master/conf/standalone.conf) file. @@ -55,7 +55,7 @@ To use Pulsar transaction API, complete the following steps. ``` 3. Create a Pulsar client and enable transactions. - + 4. Create producers and consumers. 5. Produce and receive messages. @@ -111,11 +111,11 @@ To use Pulsar transaction API, complete the following steps. // Step 5: consume messages and produce them to output topics with transactions. for (int i = 0; i < count; i++) { - // Step 5: the consumer successfully receives messages. + // Step 5: the consumer successfully receives messages. Message message = inputConsumer.receive(); - - // Step 6: create transactions. - // The transaction timeout is specified as 10 seconds. + + // Step 6: create transactions. + // The transaction timeout is specified as 10 seconds. // If the transaction is not committed within 10 seconds, the transaction is automatically aborted. Transaction txn = null; try { @@ -172,4 +172,4 @@ To use Pulsar transaction API, complete the following steps. ## Related topics -- To learn more features that can be used with transactions, see [Pulsar transactions - Advanced features](txn-advanced-features.md). \ No newline at end of file +- To learn more features that can be used with transactions, see [Pulsar transactions - Advanced features](txn-advanced-features.md).