You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by mm...@apache.org on 2018/12/09 09:03:59 UTC
[pulsar] branch asf-site updated: Updated site at revision 49cf5e2
This is an automated email from the ASF dual-hosted git repository.
mmerli pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 8755598 Updated site at revision 49cf5e2
8755598 is described below
commit 875559829c5804add0de28b4e5a17c9ee8cf0705
Author: jenkins <bu...@apache.org>
AuthorDate: Sun Dec 9 09:03:51 2018 +0000
Updated site at revision 49cf5e2
---
.../pulsar/client/api/MessageRoutingMode.html | 4 +--
.../en/2.1.0-incubating/client-libraries-cpp.html | 6 ++--
.../client-libraries-cpp/index.html | 6 ++--
.../en/2.1.0-incubating/cookbooks-partitioned.html | 18 +++++++-----
.../cookbooks-partitioned/index.html | 18 +++++++-----
.../en/2.1.1-incubating/client-libraries-cpp.html | 6 ++--
.../client-libraries-cpp/index.html | 6 ++--
.../en/2.1.1-incubating/cookbooks-partitioned.html | 18 +++++++-----
.../cookbooks-partitioned/index.html | 18 +++++++-----
content/docs/en/client-libraries-cpp.html | 6 ++--
content/docs/en/client-libraries-cpp/index.html | 6 ++--
content/docs/en/cookbooks-partitioned.html | 18 +++++++-----
content/docs/en/cookbooks-partitioned/index.html | 18 +++++++-----
content/docs/en/next/client-libraries-cpp.html | 6 ++--
.../docs/en/next/client-libraries-cpp/index.html | 6 ++--
content/docs/en/next/cookbooks-partitioned.html | 18 +++++++-----
.../docs/en/next/cookbooks-partitioned/index.html | 18 +++++++-----
.../fr/2.1.0-incubating/client-libraries-cpp.html | 6 ++--
.../client-libraries-cpp/index.html | 6 ++--
.../fr/2.1.0-incubating/cookbooks-partitioned.html | 18 +++++++-----
.../cookbooks-partitioned/index.html | 18 +++++++-----
.../fr/2.1.1-incubating/client-libraries-cpp.html | 6 ++--
.../client-libraries-cpp/index.html | 6 ++--
.../fr/2.1.1-incubating/cookbooks-partitioned.html | 18 +++++++-----
.../cookbooks-partitioned/index.html | 18 +++++++-----
content/docs/fr/client-libraries-cpp.html | 6 ++--
content/docs/fr/client-libraries-cpp/index.html | 6 ++--
content/docs/fr/cookbooks-partitioned.html | 18 +++++++-----
content/docs/fr/cookbooks-partitioned/index.html | 18 +++++++-----
content/docs/fr/next/client-libraries-cpp.html | 6 ++--
.../docs/fr/next/client-libraries-cpp/index.html | 6 ++--
content/docs/fr/next/cookbooks-partitioned.html | 18 +++++++-----
.../docs/fr/next/cookbooks-partitioned/index.html | 18 +++++++-----
.../ja/2.1.0-incubating/client-libraries-cpp.html | 6 ++--
.../client-libraries-cpp/index.html | 6 ++--
.../ja/2.1.0-incubating/cookbooks-partitioned.html | 18 +++++++-----
.../cookbooks-partitioned/index.html | 18 +++++++-----
.../ja/2.1.1-incubating/client-libraries-cpp.html | 6 ++--
.../client-libraries-cpp/index.html | 6 ++--
.../ja/2.1.1-incubating/cookbooks-partitioned.html | 18 +++++++-----
.../cookbooks-partitioned/index.html | 18 +++++++-----
content/docs/ja/client-libraries-cpp.html | 6 ++--
content/docs/ja/client-libraries-cpp/index.html | 6 ++--
content/docs/ja/cookbooks-partitioned.html | 18 +++++++-----
content/docs/ja/cookbooks-partitioned/index.html | 18 +++++++-----
content/docs/ja/next/client-libraries-cpp.html | 6 ++--
.../docs/ja/next/client-libraries-cpp/index.html | 6 ++--
content/docs/ja/next/cookbooks-partitioned.html | 18 +++++++-----
.../docs/ja/next/cookbooks-partitioned/index.html | 18 +++++++-----
.../2.1.0-incubating/client-libraries-cpp.html | 6 ++--
.../client-libraries-cpp/index.html | 6 ++--
.../2.1.0-incubating/cookbooks-partitioned.html | 18 +++++++-----
.../cookbooks-partitioned/index.html | 18 +++++++-----
.../docs/zh-CN/2.1.0-incubating/functions-api.html | 34 +++++++++++-----------
.../2.1.0-incubating/functions-api/index.html | 34 +++++++++++-----------
.../2.1.1-incubating/client-libraries-cpp.html | 6 ++--
.../client-libraries-cpp/index.html | 6 ++--
.../2.1.1-incubating/cookbooks-partitioned.html | 18 +++++++-----
.../cookbooks-partitioned/index.html | 18 +++++++-----
.../docs/zh-CN/2.1.1-incubating/functions-api.html | 34 +++++++++++-----------
.../2.1.1-incubating/functions-api/index.html | 34 +++++++++++-----------
content/docs/zh-CN/client-libraries-cpp.html | 6 ++--
content/docs/zh-CN/client-libraries-cpp/index.html | 6 ++--
content/docs/zh-CN/cookbooks-partitioned.html | 18 +++++++-----
.../docs/zh-CN/cookbooks-partitioned/index.html | 18 +++++++-----
content/docs/zh-CN/functions-api.html | 34 +++++++++++-----------
content/docs/zh-CN/functions-api/index.html | 34 +++++++++++-----------
content/docs/zh-CN/next/client-libraries-cpp.html | 6 ++--
.../zh-CN/next/client-libraries-cpp/index.html | 6 ++--
content/docs/zh-CN/next/cookbooks-partitioned.html | 18 +++++++-----
.../zh-CN/next/cookbooks-partitioned/index.html | 18 +++++++-----
content/docs/zh-CN/next/functions-api.html | 34 +++++++++++-----------
content/docs/zh-CN/next/functions-api/index.html | 34 +++++++++++-----------
content/swagger/swagger.json | 14 ++++-----
74 files changed, 561 insertions(+), 497 deletions(-)
diff --git a/content/api/client/org/apache/pulsar/client/api/MessageRoutingMode.html b/content/api/client/org/apache/pulsar/client/api/MessageRoutingMode.html
index 09d21fc..9796ced 100644
--- a/content/api/client/org/apache/pulsar/client/api/MessageRoutingMode.html
+++ b/content/api/client/org/apache/pulsar/client/api/MessageRoutingMode.html
@@ -141,7 +141,7 @@ extends Enum<<a href="../../../../../org/apache/pulsar/client/api/MessageRout
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../org/apache/pulsar/client/api/MessageRoutingMode.html#CustomPartition">CustomPartition</a></span></code>
-<div class="block">Use custom message router implemenation that will be called to determine the partition for a particular message.</div>
+<div class="block">Use custom message router implementation that will be called to determine the partition for a particular message.</div>
</td>
</tr>
<tr class="rowColor">
@@ -238,7 +238,7 @@ the order they are declared.</div>
<li class="blockList">
<h4>CustomPartition</h4>
<pre>public static final <a href="../../../../../org/apache/pulsar/client/api/MessageRoutingMode.html" title="enum in org.apache.pulsar.client.api">MessageRoutingMode</a> CustomPartition</pre>
-<div class="block">Use custom message router implemenation that will be called to determine the partition for a particular message.</div>
+<div class="block">Use custom message router implementation that will be called to determine the partition for a particular message.</div>
</li>
</ul>
</li>
diff --git a/content/docs/en/2.1.0-incubating/client-libraries-cpp.html b/content/docs/en/2.1.0-incubating/client-libraries-cpp.html
index 4a70df8..fc51bbb 100644
--- a/content/docs/en/2.1.0-incubating/client-libraries-cpp.html
+++ b/content/docs/en/2.1.0-incubating/client-libraries-cpp.html
@@ -61,9 +61,9 @@ and install those packages instead of building them yourself.</p>
<tr><th>Link</th><th>Crypto files</th></tr>
</thead>
<tbody>
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.sha512">sha512</a> [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debu [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_ [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.sha512">sha5 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client- [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0- [...]
</tbody>
</table>
<p>To install a RPM package, download the RPM packages and install them using the following command:</p>
diff --git a/content/docs/en/2.1.0-incubating/client-libraries-cpp/index.html b/content/docs/en/2.1.0-incubating/client-libraries-cpp/index.html
index 4a70df8..fc51bbb 100644
--- a/content/docs/en/2.1.0-incubating/client-libraries-cpp/index.html
+++ b/content/docs/en/2.1.0-incubating/client-libraries-cpp/index.html
@@ -61,9 +61,9 @@ and install those packages instead of building them yourself.</p>
<tr><th>Link</th><th>Crypto files</th></tr>
</thead>
<tbody>
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.sha512">sha512</a> [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debu [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_ [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.sha512">sha5 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client- [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0- [...]
</tbody>
</table>
<p>To install a RPM package, download the RPM packages and install them using the following command:</p>
diff --git a/content/docs/en/2.1.0-incubating/cookbooks-partitioned.html b/content/docs/en/2.1.0-incubating/cookbooks-partitioned.html
index 664d527..f48c6bc 100644
--- a/content/docs/en/2.1.0-incubating/cookbooks-partitioned.html
+++ b/content/docs/en/2.1.0-incubating/cookbooks-partitioned.html
@@ -64,10 +64,11 @@
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRoutingMode(ProducerConfiguration.MessageRoutingMode.SinglePartition);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRoutingMode(MessageRoutingMode.SinglePartition)
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h4><a class="anchor" aria-hidden="true" id="custom-message-router"></a><a href="#custom-message-router" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2 [...]
@@ -88,10 +89,11 @@ producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBy
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-cluster-my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRouter(AlwaysTenRouter);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRouter(<span class="hljs-keyword">new</span> AlwaysTenRouter())
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h2><a class="anchor" aria-hidden="true" id="managing-partitioned-topics"></a><a href="#managing-partitioned-topics" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 1 [...]
diff --git a/content/docs/en/2.1.0-incubating/cookbooks-partitioned/index.html b/content/docs/en/2.1.0-incubating/cookbooks-partitioned/index.html
index 664d527..f48c6bc 100644
--- a/content/docs/en/2.1.0-incubating/cookbooks-partitioned/index.html
+++ b/content/docs/en/2.1.0-incubating/cookbooks-partitioned/index.html
@@ -64,10 +64,11 @@
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRoutingMode(ProducerConfiguration.MessageRoutingMode.SinglePartition);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRoutingMode(MessageRoutingMode.SinglePartition)
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h4><a class="anchor" aria-hidden="true" id="custom-message-router"></a><a href="#custom-message-router" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2 [...]
@@ -88,10 +89,11 @@ producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBy
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-cluster-my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRouter(AlwaysTenRouter);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRouter(<span class="hljs-keyword">new</span> AlwaysTenRouter())
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h2><a class="anchor" aria-hidden="true" id="managing-partitioned-topics"></a><a href="#managing-partitioned-topics" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 1 [...]
diff --git a/content/docs/en/2.1.1-incubating/client-libraries-cpp.html b/content/docs/en/2.1.1-incubating/client-libraries-cpp.html
index 4acee6e..3a363b8 100644
--- a/content/docs/en/2.1.1-incubating/client-libraries-cpp.html
+++ b/content/docs/en/2.1.1-incubating/client-libraries-cpp.html
@@ -61,9 +61,9 @@ and install those packages instead of building them yourself.</p>
<tr><th>Link</th><th>Crypto files</th></tr>
</thead>
<tbody>
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.sha512">sha512</a> [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debu [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_ [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.sha512">sha5 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client- [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0- [...]
</tbody>
</table>
<p>To install a RPM package, download the RPM packages and install them using the following command:</p>
diff --git a/content/docs/en/2.1.1-incubating/client-libraries-cpp/index.html b/content/docs/en/2.1.1-incubating/client-libraries-cpp/index.html
index 4acee6e..3a363b8 100644
--- a/content/docs/en/2.1.1-incubating/client-libraries-cpp/index.html
+++ b/content/docs/en/2.1.1-incubating/client-libraries-cpp/index.html
@@ -61,9 +61,9 @@ and install those packages instead of building them yourself.</p>
<tr><th>Link</th><th>Crypto files</th></tr>
</thead>
<tbody>
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.sha512">sha512</a> [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debu [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_ [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.sha512">sha5 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client- [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0- [...]
</tbody>
</table>
<p>To install a RPM package, download the RPM packages and install them using the following command:</p>
diff --git a/content/docs/en/2.1.1-incubating/cookbooks-partitioned.html b/content/docs/en/2.1.1-incubating/cookbooks-partitioned.html
index 29f2cf0..ae230c2 100644
--- a/content/docs/en/2.1.1-incubating/cookbooks-partitioned.html
+++ b/content/docs/en/2.1.1-incubating/cookbooks-partitioned.html
@@ -64,10 +64,11 @@
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRoutingMode(ProducerConfiguration.MessageRoutingMode.SinglePartition);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRoutingMode(MessageRoutingMode.SinglePartition)
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h4><a class="anchor" aria-hidden="true" id="custom-message-router"></a><a href="#custom-message-router" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2 [...]
@@ -88,10 +89,11 @@ producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBy
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-cluster-my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRouter(AlwaysTenRouter);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRouter(<span class="hljs-keyword">new</span> AlwaysTenRouter())
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h2><a class="anchor" aria-hidden="true" id="managing-partitioned-topics"></a><a href="#managing-partitioned-topics" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 1 [...]
diff --git a/content/docs/en/2.1.1-incubating/cookbooks-partitioned/index.html b/content/docs/en/2.1.1-incubating/cookbooks-partitioned/index.html
index 29f2cf0..ae230c2 100644
--- a/content/docs/en/2.1.1-incubating/cookbooks-partitioned/index.html
+++ b/content/docs/en/2.1.1-incubating/cookbooks-partitioned/index.html
@@ -64,10 +64,11 @@
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRoutingMode(ProducerConfiguration.MessageRoutingMode.SinglePartition);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRoutingMode(MessageRoutingMode.SinglePartition)
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h4><a class="anchor" aria-hidden="true" id="custom-message-router"></a><a href="#custom-message-router" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2 [...]
@@ -88,10 +89,11 @@ producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBy
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-cluster-my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRouter(AlwaysTenRouter);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRouter(<span class="hljs-keyword">new</span> AlwaysTenRouter())
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h2><a class="anchor" aria-hidden="true" id="managing-partitioned-topics"></a><a href="#managing-partitioned-topics" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 1 [...]
diff --git a/content/docs/en/client-libraries-cpp.html b/content/docs/en/client-libraries-cpp.html
index e1e0aeb..cbbcc43 100644
--- a/content/docs/en/client-libraries-cpp.html
+++ b/content/docs/en/client-libraries-cpp.html
@@ -61,9 +61,9 @@ and install those packages instead of building them yourself.</p>
<tr><th>Link</th><th>Crypto files</th></tr>
</thead>
<tbody>
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.sha512">sha512</a> [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debu [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_ [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.sha512">sha5 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client- [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0- [...]
</tbody>
</table>
<p>To install a RPM package, download the RPM packages and install them using the following command:</p>
diff --git a/content/docs/en/client-libraries-cpp/index.html b/content/docs/en/client-libraries-cpp/index.html
index e1e0aeb..cbbcc43 100644
--- a/content/docs/en/client-libraries-cpp/index.html
+++ b/content/docs/en/client-libraries-cpp/index.html
@@ -61,9 +61,9 @@ and install those packages instead of building them yourself.</p>
<tr><th>Link</th><th>Crypto files</th></tr>
</thead>
<tbody>
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.sha512">sha512</a> [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debu [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_ [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.sha512">sha5 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client- [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0- [...]
</tbody>
</table>
<p>To install a RPM package, download the RPM packages and install them using the following command:</p>
diff --git a/content/docs/en/cookbooks-partitioned.html b/content/docs/en/cookbooks-partitioned.html
index a9941aa..7562762 100644
--- a/content/docs/en/cookbooks-partitioned.html
+++ b/content/docs/en/cookbooks-partitioned.html
@@ -64,10 +64,11 @@
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRoutingMode(ProducerConfiguration.MessageRoutingMode.SinglePartition);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRoutingMode(MessageRoutingMode.SinglePartition)
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h4><a class="anchor" aria-hidden="true" id="custom-message-router"></a><a href="#custom-message-router" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2 [...]
@@ -88,10 +89,11 @@ producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBy
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-cluster-my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRouter(AlwaysTenRouter);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRouter(<span class="hljs-keyword">new</span> AlwaysTenRouter())
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h2><a class="anchor" aria-hidden="true" id="managing-partitioned-topics"></a><a href="#managing-partitioned-topics" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 1 [...]
diff --git a/content/docs/en/cookbooks-partitioned/index.html b/content/docs/en/cookbooks-partitioned/index.html
index a9941aa..7562762 100644
--- a/content/docs/en/cookbooks-partitioned/index.html
+++ b/content/docs/en/cookbooks-partitioned/index.html
@@ -64,10 +64,11 @@
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRoutingMode(ProducerConfiguration.MessageRoutingMode.SinglePartition);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRoutingMode(MessageRoutingMode.SinglePartition)
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h4><a class="anchor" aria-hidden="true" id="custom-message-router"></a><a href="#custom-message-router" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2 [...]
@@ -88,10 +89,11 @@ producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBy
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-cluster-my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRouter(AlwaysTenRouter);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRouter(<span class="hljs-keyword">new</span> AlwaysTenRouter())
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h2><a class="anchor" aria-hidden="true" id="managing-partitioned-topics"></a><a href="#managing-partitioned-topics" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 1 [...]
diff --git a/content/docs/en/next/client-libraries-cpp.html b/content/docs/en/next/client-libraries-cpp.html
index 47e3218..906ac4f 100644
--- a/content/docs/en/next/client-libraries-cpp.html
+++ b/content/docs/en/next/client-libraries-cpp.html
@@ -61,9 +61,9 @@ and install those packages instead of building them yourself.</p>
<tr><th>Link</th><th>Crypto files</th></tr>
</thead>
<tbody>
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.sha512">sha512</a> [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debu [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_ [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.sha512">sha5 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client- [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0- [...]
</tbody>
</table>
<p>To install a RPM package, download the RPM packages and install them using the following command:</p>
diff --git a/content/docs/en/next/client-libraries-cpp/index.html b/content/docs/en/next/client-libraries-cpp/index.html
index 47e3218..906ac4f 100644
--- a/content/docs/en/next/client-libraries-cpp/index.html
+++ b/content/docs/en/next/client-libraries-cpp/index.html
@@ -61,9 +61,9 @@ and install those packages instead of building them yourself.</p>
<tr><th>Link</th><th>Crypto files</th></tr>
</thead>
<tbody>
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.sha512">sha512</a> [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debu [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_ [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.sha512">sha5 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client- [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0- [...]
</tbody>
</table>
<p>To install a RPM package, download the RPM packages and install them using the following command:</p>
diff --git a/content/docs/en/next/cookbooks-partitioned.html b/content/docs/en/next/cookbooks-partitioned.html
index 50098b9..57afd4f 100644
--- a/content/docs/en/next/cookbooks-partitioned.html
+++ b/content/docs/en/next/cookbooks-partitioned.html
@@ -64,10 +64,11 @@
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRoutingMode(ProducerConfiguration.MessageRoutingMode.SinglePartition);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRoutingMode(MessageRoutingMode.SinglePartition)
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h4><a class="anchor" aria-hidden="true" id="custom-message-router"></a><a href="#custom-message-router" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2 [...]
@@ -88,10 +89,11 @@ producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBy
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-cluster-my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRouter(AlwaysTenRouter);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRouter(<span class="hljs-keyword">new</span> AlwaysTenRouter())
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h2><a class="anchor" aria-hidden="true" id="managing-partitioned-topics"></a><a href="#managing-partitioned-topics" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 1 [...]
diff --git a/content/docs/en/next/cookbooks-partitioned/index.html b/content/docs/en/next/cookbooks-partitioned/index.html
index 50098b9..57afd4f 100644
--- a/content/docs/en/next/cookbooks-partitioned/index.html
+++ b/content/docs/en/next/cookbooks-partitioned/index.html
@@ -64,10 +64,11 @@
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRoutingMode(ProducerConfiguration.MessageRoutingMode.SinglePartition);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRoutingMode(MessageRoutingMode.SinglePartition)
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h4><a class="anchor" aria-hidden="true" id="custom-message-router"></a><a href="#custom-message-router" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2 [...]
@@ -88,10 +89,11 @@ producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBy
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-cluster-my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRouter(AlwaysTenRouter);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRouter(<span class="hljs-keyword">new</span> AlwaysTenRouter())
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h2><a class="anchor" aria-hidden="true" id="managing-partitioned-topics"></a><a href="#managing-partitioned-topics" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 1 [...]
diff --git a/content/docs/fr/2.1.0-incubating/client-libraries-cpp.html b/content/docs/fr/2.1.0-incubating/client-libraries-cpp.html
index 0a04a3a..080f8ed 100644
--- a/content/docs/fr/2.1.0-incubating/client-libraries-cpp.html
+++ b/content/docs/fr/2.1.0-incubating/client-libraries-cpp.html
@@ -60,9 +60,9 @@
<tr><th>Lien</th><th>Fichiers de cryptographie</th></tr>
</thead>
<tbody>
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.sha512">sha512</a> [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debug [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_6 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.sha512">sha5 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-d [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1 [...]
</tbody>
</table>
<p>To install a RPM package, download the RPM packages and install them using the following command:</p>
diff --git a/content/docs/fr/2.1.0-incubating/client-libraries-cpp/index.html b/content/docs/fr/2.1.0-incubating/client-libraries-cpp/index.html
index 0a04a3a..080f8ed 100644
--- a/content/docs/fr/2.1.0-incubating/client-libraries-cpp/index.html
+++ b/content/docs/fr/2.1.0-incubating/client-libraries-cpp/index.html
@@ -60,9 +60,9 @@
<tr><th>Lien</th><th>Fichiers de cryptographie</th></tr>
</thead>
<tbody>
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.sha512">sha512</a> [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debug [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_6 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.sha512">sha5 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-d [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1 [...]
</tbody>
</table>
<p>To install a RPM package, download the RPM packages and install them using the following command:</p>
diff --git a/content/docs/fr/2.1.0-incubating/cookbooks-partitioned.html b/content/docs/fr/2.1.0-incubating/cookbooks-partitioned.html
index bbd4dbd..22c71fc 100644
--- a/content/docs/fr/2.1.0-incubating/cookbooks-partitioned.html
+++ b/content/docs/fr/2.1.0-incubating/cookbooks-partitioned.html
@@ -64,10 +64,11 @@
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRoutingMode(ProducerConfiguration.MessageRoutingMode.SinglePartition);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRoutingMode(MessageRoutingMode.SinglePartition)
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h4><a class="anchor" aria-hidden="true" id="custom-message-router"></a><a href="#custom-message-router" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2 [...]
@@ -88,10 +89,11 @@ producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBy
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-cluster-my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRouter(AlwaysTenRouter);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRouter(<span class="hljs-keyword">new</span> AlwaysTenRouter())
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h2><a class="anchor" aria-hidden="true" id="managing-partitioned-topics"></a><a href="#managing-partitioned-topics" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 1 [...]
diff --git a/content/docs/fr/2.1.0-incubating/cookbooks-partitioned/index.html b/content/docs/fr/2.1.0-incubating/cookbooks-partitioned/index.html
index bbd4dbd..22c71fc 100644
--- a/content/docs/fr/2.1.0-incubating/cookbooks-partitioned/index.html
+++ b/content/docs/fr/2.1.0-incubating/cookbooks-partitioned/index.html
@@ -64,10 +64,11 @@
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRoutingMode(ProducerConfiguration.MessageRoutingMode.SinglePartition);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRoutingMode(MessageRoutingMode.SinglePartition)
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h4><a class="anchor" aria-hidden="true" id="custom-message-router"></a><a href="#custom-message-router" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2 [...]
@@ -88,10 +89,11 @@ producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBy
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-cluster-my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRouter(AlwaysTenRouter);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRouter(<span class="hljs-keyword">new</span> AlwaysTenRouter())
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h2><a class="anchor" aria-hidden="true" id="managing-partitioned-topics"></a><a href="#managing-partitioned-topics" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 1 [...]
diff --git a/content/docs/fr/2.1.1-incubating/client-libraries-cpp.html b/content/docs/fr/2.1.1-incubating/client-libraries-cpp.html
index c3a0cd2..3fa4b98 100644
--- a/content/docs/fr/2.1.1-incubating/client-libraries-cpp.html
+++ b/content/docs/fr/2.1.1-incubating/client-libraries-cpp.html
@@ -60,9 +60,9 @@
<tr><th>Lien</th><th>Fichiers de cryptographie</th></tr>
</thead>
<tbody>
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.sha512">sha512</a> [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debug [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_6 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.sha512">sha5 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-d [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1 [...]
</tbody>
</table>
<p>To install a RPM package, download the RPM packages and install them using the following command:</p>
diff --git a/content/docs/fr/2.1.1-incubating/client-libraries-cpp/index.html b/content/docs/fr/2.1.1-incubating/client-libraries-cpp/index.html
index c3a0cd2..3fa4b98 100644
--- a/content/docs/fr/2.1.1-incubating/client-libraries-cpp/index.html
+++ b/content/docs/fr/2.1.1-incubating/client-libraries-cpp/index.html
@@ -60,9 +60,9 @@
<tr><th>Lien</th><th>Fichiers de cryptographie</th></tr>
</thead>
<tbody>
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.sha512">sha512</a> [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debug [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_6 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.sha512">sha5 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-d [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1 [...]
</tbody>
</table>
<p>To install a RPM package, download the RPM packages and install them using the following command:</p>
diff --git a/content/docs/fr/2.1.1-incubating/cookbooks-partitioned.html b/content/docs/fr/2.1.1-incubating/cookbooks-partitioned.html
index 8cdd749..9f69559 100644
--- a/content/docs/fr/2.1.1-incubating/cookbooks-partitioned.html
+++ b/content/docs/fr/2.1.1-incubating/cookbooks-partitioned.html
@@ -64,10 +64,11 @@
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRoutingMode(ProducerConfiguration.MessageRoutingMode.SinglePartition);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRoutingMode(MessageRoutingMode.SinglePartition)
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h4><a class="anchor" aria-hidden="true" id="custom-message-router"></a><a href="#custom-message-router" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2 [...]
@@ -88,10 +89,11 @@ producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBy
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-cluster-my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRouter(AlwaysTenRouter);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRouter(<span class="hljs-keyword">new</span> AlwaysTenRouter())
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h2><a class="anchor" aria-hidden="true" id="managing-partitioned-topics"></a><a href="#managing-partitioned-topics" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 1 [...]
diff --git a/content/docs/fr/2.1.1-incubating/cookbooks-partitioned/index.html b/content/docs/fr/2.1.1-incubating/cookbooks-partitioned/index.html
index 8cdd749..9f69559 100644
--- a/content/docs/fr/2.1.1-incubating/cookbooks-partitioned/index.html
+++ b/content/docs/fr/2.1.1-incubating/cookbooks-partitioned/index.html
@@ -64,10 +64,11 @@
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRoutingMode(ProducerConfiguration.MessageRoutingMode.SinglePartition);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRoutingMode(MessageRoutingMode.SinglePartition)
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h4><a class="anchor" aria-hidden="true" id="custom-message-router"></a><a href="#custom-message-router" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2 [...]
@@ -88,10 +89,11 @@ producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBy
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-cluster-my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRouter(AlwaysTenRouter);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRouter(<span class="hljs-keyword">new</span> AlwaysTenRouter())
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h2><a class="anchor" aria-hidden="true" id="managing-partitioned-topics"></a><a href="#managing-partitioned-topics" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 1 [...]
diff --git a/content/docs/fr/client-libraries-cpp.html b/content/docs/fr/client-libraries-cpp.html
index 350060b..47484f6 100644
--- a/content/docs/fr/client-libraries-cpp.html
+++ b/content/docs/fr/client-libraries-cpp.html
@@ -60,9 +60,9 @@
<tr><th>Lien</th><th>Fichiers de cryptographie</th></tr>
</thead>
<tbody>
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.sha512">sha512</a> [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debug [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_6 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.sha512">sha5 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-d [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1 [...]
</tbody>
</table>
<p>To install a RPM package, download the RPM packages and install them using the following command:</p>
diff --git a/content/docs/fr/client-libraries-cpp/index.html b/content/docs/fr/client-libraries-cpp/index.html
index 350060b..47484f6 100644
--- a/content/docs/fr/client-libraries-cpp/index.html
+++ b/content/docs/fr/client-libraries-cpp/index.html
@@ -60,9 +60,9 @@
<tr><th>Lien</th><th>Fichiers de cryptographie</th></tr>
</thead>
<tbody>
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.sha512">sha512</a> [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debug [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_6 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.sha512">sha5 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-d [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1 [...]
</tbody>
</table>
<p>To install a RPM package, download the RPM packages and install them using the following command:</p>
diff --git a/content/docs/fr/cookbooks-partitioned.html b/content/docs/fr/cookbooks-partitioned.html
index ee0df4e..88ffed7 100644
--- a/content/docs/fr/cookbooks-partitioned.html
+++ b/content/docs/fr/cookbooks-partitioned.html
@@ -64,10 +64,11 @@
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRoutingMode(ProducerConfiguration.MessageRoutingMode.SinglePartition);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRoutingMode(MessageRoutingMode.SinglePartition)
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h4><a class="anchor" aria-hidden="true" id="custom-message-router"></a><a href="#custom-message-router" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2 [...]
@@ -88,10 +89,11 @@ producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBy
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-cluster-my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRouter(AlwaysTenRouter);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRouter(<span class="hljs-keyword">new</span> AlwaysTenRouter())
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h2><a class="anchor" aria-hidden="true" id="managing-partitioned-topics"></a><a href="#managing-partitioned-topics" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 1 [...]
diff --git a/content/docs/fr/cookbooks-partitioned/index.html b/content/docs/fr/cookbooks-partitioned/index.html
index ee0df4e..88ffed7 100644
--- a/content/docs/fr/cookbooks-partitioned/index.html
+++ b/content/docs/fr/cookbooks-partitioned/index.html
@@ -64,10 +64,11 @@
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRoutingMode(ProducerConfiguration.MessageRoutingMode.SinglePartition);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRoutingMode(MessageRoutingMode.SinglePartition)
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h4><a class="anchor" aria-hidden="true" id="custom-message-router"></a><a href="#custom-message-router" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2 [...]
@@ -88,10 +89,11 @@ producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBy
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-cluster-my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRouter(AlwaysTenRouter);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRouter(<span class="hljs-keyword">new</span> AlwaysTenRouter())
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h2><a class="anchor" aria-hidden="true" id="managing-partitioned-topics"></a><a href="#managing-partitioned-topics" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 1 [...]
diff --git a/content/docs/fr/next/client-libraries-cpp.html b/content/docs/fr/next/client-libraries-cpp.html
index 938ffcc..38441d2 100644
--- a/content/docs/fr/next/client-libraries-cpp.html
+++ b/content/docs/fr/next/client-libraries-cpp.html
@@ -60,9 +60,9 @@
<tr><th>Lien</th><th>Fichiers de cryptographie</th></tr>
</thead>
<tbody>
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.sha512">sha512</a> [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debug [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_6 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.sha512">sha5 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-d [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1 [...]
</tbody>
</table>
<p>To install a RPM package, download the RPM packages and install them using the following command:</p>
diff --git a/content/docs/fr/next/client-libraries-cpp/index.html b/content/docs/fr/next/client-libraries-cpp/index.html
index 938ffcc..38441d2 100644
--- a/content/docs/fr/next/client-libraries-cpp/index.html
+++ b/content/docs/fr/next/client-libraries-cpp/index.html
@@ -60,9 +60,9 @@
<tr><th>Lien</th><th>Fichiers de cryptographie</th></tr>
</thead>
<tbody>
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.sha512">sha512</a> [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debug [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_6 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.sha512">sha5 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-d [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1 [...]
</tbody>
</table>
<p>To install a RPM package, download the RPM packages and install them using the following command:</p>
diff --git a/content/docs/fr/next/cookbooks-partitioned.html b/content/docs/fr/next/cookbooks-partitioned.html
index f08fa0e..b7875bb 100644
--- a/content/docs/fr/next/cookbooks-partitioned.html
+++ b/content/docs/fr/next/cookbooks-partitioned.html
@@ -64,10 +64,11 @@
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRoutingMode(ProducerConfiguration.MessageRoutingMode.SinglePartition);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRoutingMode(MessageRoutingMode.SinglePartition)
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h4><a class="anchor" aria-hidden="true" id="custom-message-router"></a><a href="#custom-message-router" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2 [...]
@@ -88,10 +89,11 @@ producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBy
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-cluster-my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRouter(AlwaysTenRouter);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRouter(<span class="hljs-keyword">new</span> AlwaysTenRouter())
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h2><a class="anchor" aria-hidden="true" id="managing-partitioned-topics"></a><a href="#managing-partitioned-topics" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 1 [...]
diff --git a/content/docs/fr/next/cookbooks-partitioned/index.html b/content/docs/fr/next/cookbooks-partitioned/index.html
index f08fa0e..b7875bb 100644
--- a/content/docs/fr/next/cookbooks-partitioned/index.html
+++ b/content/docs/fr/next/cookbooks-partitioned/index.html
@@ -64,10 +64,11 @@
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRoutingMode(ProducerConfiguration.MessageRoutingMode.SinglePartition);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRoutingMode(MessageRoutingMode.SinglePartition)
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h4><a class="anchor" aria-hidden="true" id="custom-message-router"></a><a href="#custom-message-router" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2 [...]
@@ -88,10 +89,11 @@ producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBy
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-cluster-my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRouter(AlwaysTenRouter);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRouter(<span class="hljs-keyword">new</span> AlwaysTenRouter())
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h2><a class="anchor" aria-hidden="true" id="managing-partitioned-topics"></a><a href="#managing-partitioned-topics" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 1 [...]
diff --git a/content/docs/ja/2.1.0-incubating/client-libraries-cpp.html b/content/docs/ja/2.1.0-incubating/client-libraries-cpp.html
index 364e272..1d89420 100644
--- a/content/docs/ja/2.1.0-incubating/client-libraries-cpp.html
+++ b/content/docs/ja/2.1.0-incubating/client-libraries-cpp.html
@@ -60,9 +60,9 @@
<tr><th>Link</th><th>Crypto files</th></tr>
</thead>
<tbody>
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.sha512">sha512</a> [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debug [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_6 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.sha512">sha5 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-d [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1 [...]
</tbody>
</table>
<p>RPM パッケージをインストールするには、次のコマンドで RPM パッケージのダウンロードとインストールを行います。</p>
diff --git a/content/docs/ja/2.1.0-incubating/client-libraries-cpp/index.html b/content/docs/ja/2.1.0-incubating/client-libraries-cpp/index.html
index 364e272..1d89420 100644
--- a/content/docs/ja/2.1.0-incubating/client-libraries-cpp/index.html
+++ b/content/docs/ja/2.1.0-incubating/client-libraries-cpp/index.html
@@ -60,9 +60,9 @@
<tr><th>Link</th><th>Crypto files</th></tr>
</thead>
<tbody>
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.sha512">sha512</a> [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debug [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_6 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.sha512">sha5 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-d [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1 [...]
</tbody>
</table>
<p>RPM パッケージをインストールするには、次のコマンドで RPM パッケージのダウンロードとインストールを行います。</p>
diff --git a/content/docs/ja/2.1.0-incubating/cookbooks-partitioned.html b/content/docs/ja/2.1.0-incubating/cookbooks-partitioned.html
index 9045b4e..615b67e 100644
--- a/content/docs/ja/2.1.0-incubating/cookbooks-partitioned.html
+++ b/content/docs/ja/2.1.0-incubating/cookbooks-partitioned.html
@@ -64,10 +64,11 @@
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRoutingMode(ProducerConfiguration.MessageRoutingMode.SinglePartition);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRoutingMode(MessageRoutingMode.SinglePartition)
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h4><a class="anchor" aria-hidden="true" id="custom-message-router"></a><a href="#custom-message-router" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2 [...]
@@ -88,10 +89,11 @@ producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBy
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-cluster-my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRouter(AlwaysTenRouter);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRouter(<span class="hljs-keyword">new</span> AlwaysTenRouter())
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h2><a class="anchor" aria-hidden="true" id="managing-partitioned-topics"></a><a href="#managing-partitioned-topics" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 1 [...]
diff --git a/content/docs/ja/2.1.0-incubating/cookbooks-partitioned/index.html b/content/docs/ja/2.1.0-incubating/cookbooks-partitioned/index.html
index 9045b4e..615b67e 100644
--- a/content/docs/ja/2.1.0-incubating/cookbooks-partitioned/index.html
+++ b/content/docs/ja/2.1.0-incubating/cookbooks-partitioned/index.html
@@ -64,10 +64,11 @@
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRoutingMode(ProducerConfiguration.MessageRoutingMode.SinglePartition);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRoutingMode(MessageRoutingMode.SinglePartition)
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h4><a class="anchor" aria-hidden="true" id="custom-message-router"></a><a href="#custom-message-router" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2 [...]
@@ -88,10 +89,11 @@ producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBy
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-cluster-my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRouter(AlwaysTenRouter);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRouter(<span class="hljs-keyword">new</span> AlwaysTenRouter())
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h2><a class="anchor" aria-hidden="true" id="managing-partitioned-topics"></a><a href="#managing-partitioned-topics" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 1 [...]
diff --git a/content/docs/ja/2.1.1-incubating/client-libraries-cpp.html b/content/docs/ja/2.1.1-incubating/client-libraries-cpp.html
index 2772af7..0200b59 100644
--- a/content/docs/ja/2.1.1-incubating/client-libraries-cpp.html
+++ b/content/docs/ja/2.1.1-incubating/client-libraries-cpp.html
@@ -60,9 +60,9 @@
<tr><th>Link</th><th>Crypto files</th></tr>
</thead>
<tbody>
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.sha512">sha512</a> [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debug [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_6 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.sha512">sha5 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-d [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1 [...]
</tbody>
</table>
<p>RPM パッケージをインストールするには、次のコマンドで RPM パッケージのダウンロードとインストールを行います。</p>
diff --git a/content/docs/ja/2.1.1-incubating/client-libraries-cpp/index.html b/content/docs/ja/2.1.1-incubating/client-libraries-cpp/index.html
index 2772af7..0200b59 100644
--- a/content/docs/ja/2.1.1-incubating/client-libraries-cpp/index.html
+++ b/content/docs/ja/2.1.1-incubating/client-libraries-cpp/index.html
@@ -60,9 +60,9 @@
<tr><th>Link</th><th>Crypto files</th></tr>
</thead>
<tbody>
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.sha512">sha512</a> [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debug [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_6 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.sha512">sha5 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-d [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1 [...]
</tbody>
</table>
<p>RPM パッケージをインストールするには、次のコマンドで RPM パッケージのダウンロードとインストールを行います。</p>
diff --git a/content/docs/ja/2.1.1-incubating/cookbooks-partitioned.html b/content/docs/ja/2.1.1-incubating/cookbooks-partitioned.html
index 3b136df..b3e45d5 100644
--- a/content/docs/ja/2.1.1-incubating/cookbooks-partitioned.html
+++ b/content/docs/ja/2.1.1-incubating/cookbooks-partitioned.html
@@ -64,10 +64,11 @@
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRoutingMode(ProducerConfiguration.MessageRoutingMode.SinglePartition);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRoutingMode(MessageRoutingMode.SinglePartition)
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h4><a class="anchor" aria-hidden="true" id="custom-message-router"></a><a href="#custom-message-router" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2 [...]
@@ -88,10 +89,11 @@ producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBy
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-cluster-my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRouter(AlwaysTenRouter);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRouter(<span class="hljs-keyword">new</span> AlwaysTenRouter())
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h2><a class="anchor" aria-hidden="true" id="managing-partitioned-topics"></a><a href="#managing-partitioned-topics" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 1 [...]
diff --git a/content/docs/ja/2.1.1-incubating/cookbooks-partitioned/index.html b/content/docs/ja/2.1.1-incubating/cookbooks-partitioned/index.html
index 3b136df..b3e45d5 100644
--- a/content/docs/ja/2.1.1-incubating/cookbooks-partitioned/index.html
+++ b/content/docs/ja/2.1.1-incubating/cookbooks-partitioned/index.html
@@ -64,10 +64,11 @@
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRoutingMode(ProducerConfiguration.MessageRoutingMode.SinglePartition);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRoutingMode(MessageRoutingMode.SinglePartition)
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h4><a class="anchor" aria-hidden="true" id="custom-message-router"></a><a href="#custom-message-router" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2 [...]
@@ -88,10 +89,11 @@ producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBy
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-cluster-my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRouter(AlwaysTenRouter);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRouter(<span class="hljs-keyword">new</span> AlwaysTenRouter())
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h2><a class="anchor" aria-hidden="true" id="managing-partitioned-topics"></a><a href="#managing-partitioned-topics" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 1 [...]
diff --git a/content/docs/ja/client-libraries-cpp.html b/content/docs/ja/client-libraries-cpp.html
index 0005ff2..3e834b3 100644
--- a/content/docs/ja/client-libraries-cpp.html
+++ b/content/docs/ja/client-libraries-cpp.html
@@ -60,9 +60,9 @@
<tr><th>Link</th><th>Crypto files</th></tr>
</thead>
<tbody>
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.sha512">sha512</a> [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debug [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_6 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.sha512">sha5 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-d [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1 [...]
</tbody>
</table>
<p>RPM パッケージをインストールするには、次のコマンドで RPM パッケージのダウンロードとインストールを行います。</p>
diff --git a/content/docs/ja/client-libraries-cpp/index.html b/content/docs/ja/client-libraries-cpp/index.html
index 0005ff2..3e834b3 100644
--- a/content/docs/ja/client-libraries-cpp/index.html
+++ b/content/docs/ja/client-libraries-cpp/index.html
@@ -60,9 +60,9 @@
<tr><th>Link</th><th>Crypto files</th></tr>
</thead>
<tbody>
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.sha512">sha512</a> [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debug [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_6 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.sha512">sha5 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-d [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1 [...]
</tbody>
</table>
<p>RPM パッケージをインストールするには、次のコマンドで RPM パッケージのダウンロードとインストールを行います。</p>
diff --git a/content/docs/ja/cookbooks-partitioned.html b/content/docs/ja/cookbooks-partitioned.html
index 1a56b27..f8d9989 100644
--- a/content/docs/ja/cookbooks-partitioned.html
+++ b/content/docs/ja/cookbooks-partitioned.html
@@ -64,10 +64,11 @@
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRoutingMode(ProducerConfiguration.MessageRoutingMode.SinglePartition);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRoutingMode(MessageRoutingMode.SinglePartition)
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h4><a class="anchor" aria-hidden="true" id="custom-message-router"></a><a href="#custom-message-router" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2 [...]
@@ -88,10 +89,11 @@ producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBy
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-cluster-my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRouter(AlwaysTenRouter);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRouter(<span class="hljs-keyword">new</span> AlwaysTenRouter())
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h2><a class="anchor" aria-hidden="true" id="managing-partitioned-topics"></a><a href="#managing-partitioned-topics" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 1 [...]
diff --git a/content/docs/ja/cookbooks-partitioned/index.html b/content/docs/ja/cookbooks-partitioned/index.html
index 1a56b27..f8d9989 100644
--- a/content/docs/ja/cookbooks-partitioned/index.html
+++ b/content/docs/ja/cookbooks-partitioned/index.html
@@ -64,10 +64,11 @@
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRoutingMode(ProducerConfiguration.MessageRoutingMode.SinglePartition);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRoutingMode(MessageRoutingMode.SinglePartition)
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h4><a class="anchor" aria-hidden="true" id="custom-message-router"></a><a href="#custom-message-router" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2 [...]
@@ -88,10 +89,11 @@ producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBy
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-cluster-my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRouter(AlwaysTenRouter);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRouter(<span class="hljs-keyword">new</span> AlwaysTenRouter())
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h2><a class="anchor" aria-hidden="true" id="managing-partitioned-topics"></a><a href="#managing-partitioned-topics" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 1 [...]
diff --git a/content/docs/ja/next/client-libraries-cpp.html b/content/docs/ja/next/client-libraries-cpp.html
index ac89200..5a57b8a 100644
--- a/content/docs/ja/next/client-libraries-cpp.html
+++ b/content/docs/ja/next/client-libraries-cpp.html
@@ -60,9 +60,9 @@
<tr><th>リンク</th><th>署名ファイル</th></tr>
</thead>
<tbody>
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.sha512">sha512</a> [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debug [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_6 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.sha512">sha5 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-d [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1 [...]
</tbody>
</table>
<p>RPM パッケージをインストールするには、次のコマンドで RPM パッケージのダウンロードとインストールを行います。</p>
diff --git a/content/docs/ja/next/client-libraries-cpp/index.html b/content/docs/ja/next/client-libraries-cpp/index.html
index ac89200..5a57b8a 100644
--- a/content/docs/ja/next/client-libraries-cpp/index.html
+++ b/content/docs/ja/next/client-libraries-cpp/index.html
@@ -60,9 +60,9 @@
<tr><th>リンク</th><th>署名ファイル</th></tr>
</thead>
<tbody>
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.sha512">sha512</a> [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debug [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_6 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.sha512">sha5 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-d [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1 [...]
</tbody>
</table>
<p>RPM パッケージをインストールするには、次のコマンドで RPM パッケージのダウンロードとインストールを行います。</p>
diff --git a/content/docs/ja/next/cookbooks-partitioned.html b/content/docs/ja/next/cookbooks-partitioned.html
index 65c06c2..eb4ade9 100644
--- a/content/docs/ja/next/cookbooks-partitioned.html
+++ b/content/docs/ja/next/cookbooks-partitioned.html
@@ -64,10 +64,11 @@
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRoutingMode(ProducerConfiguration.MessageRoutingMode.SinglePartition);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRoutingMode(MessageRoutingMode.SinglePartition)
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h4><a class="anchor" aria-hidden="true" id="custom-message-router"></a><a href="#custom-message-router" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2 [...]
@@ -88,10 +89,11 @@ producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBy
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-cluster-my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRouter(AlwaysTenRouter);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRouter(<span class="hljs-keyword">new</span> AlwaysTenRouter())
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h2><a class="anchor" aria-hidden="true" id="managing-partitioned-topics"></a><a href="#managing-partitioned-topics" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 1 [...]
diff --git a/content/docs/ja/next/cookbooks-partitioned/index.html b/content/docs/ja/next/cookbooks-partitioned/index.html
index 65c06c2..eb4ade9 100644
--- a/content/docs/ja/next/cookbooks-partitioned/index.html
+++ b/content/docs/ja/next/cookbooks-partitioned/index.html
@@ -64,10 +64,11 @@
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRoutingMode(ProducerConfiguration.MessageRoutingMode.SinglePartition);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRoutingMode(MessageRoutingMode.SinglePartition)
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h4><a class="anchor" aria-hidden="true" id="custom-message-router"></a><a href="#custom-message-router" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2 [...]
@@ -88,10 +89,11 @@ producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBy
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-cluster-my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRouter(AlwaysTenRouter);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRouter(<span class="hljs-keyword">new</span> AlwaysTenRouter())
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h2><a class="anchor" aria-hidden="true" id="managing-partitioned-topics"></a><a href="#managing-partitioned-topics" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 1 [...]
diff --git a/content/docs/zh-CN/2.1.0-incubating/client-libraries-cpp.html b/content/docs/zh-CN/2.1.0-incubating/client-libraries-cpp.html
index 7e46b6c..a7f07bf 100644
--- a/content/docs/zh-CN/2.1.0-incubating/client-libraries-cpp.html
+++ b/content/docs/zh-CN/2.1.0-incubating/client-libraries-cpp.html
@@ -60,9 +60,9 @@
<tr><th>链接</th><th>加密文件</th></tr>
</thead>
<tbody>
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.sha512">sha512</a> [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debug [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_6 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.sha512">sha5 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-d [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1 [...]
</tbody>
</table>
<p>To install a RPM package, download the RPM packages and install them using the following command:</p>
diff --git a/content/docs/zh-CN/2.1.0-incubating/client-libraries-cpp/index.html b/content/docs/zh-CN/2.1.0-incubating/client-libraries-cpp/index.html
index 7e46b6c..a7f07bf 100644
--- a/content/docs/zh-CN/2.1.0-incubating/client-libraries-cpp/index.html
+++ b/content/docs/zh-CN/2.1.0-incubating/client-libraries-cpp/index.html
@@ -60,9 +60,9 @@
<tr><th>链接</th><th>加密文件</th></tr>
</thead>
<tbody>
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.sha512">sha512</a> [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debug [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_6 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.sha512">sha5 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-d [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1 [...]
</tbody>
</table>
<p>To install a RPM package, download the RPM packages and install them using the following command:</p>
diff --git a/content/docs/zh-CN/2.1.0-incubating/cookbooks-partitioned.html b/content/docs/zh-CN/2.1.0-incubating/cookbooks-partitioned.html
index 0f02e51..9c59662 100644
--- a/content/docs/zh-CN/2.1.0-incubating/cookbooks-partitioned.html
+++ b/content/docs/zh-CN/2.1.0-incubating/cookbooks-partitioned.html
@@ -64,10 +64,11 @@
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRoutingMode(ProducerConfiguration.MessageRoutingMode.SinglePartition);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRoutingMode(MessageRoutingMode.SinglePartition)
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h4><a class="anchor" aria-hidden="true" id="custom-message-router"></a><a href="#custom-message-router" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2 [...]
@@ -88,10 +89,11 @@ producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBy
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-cluster-my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRouter(AlwaysTenRouter);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRouter(<span class="hljs-keyword">new</span> AlwaysTenRouter())
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h2><a class="anchor" aria-hidden="true" id="managing-partitioned-topics"></a><a href="#managing-partitioned-topics" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 1 [...]
diff --git a/content/docs/zh-CN/2.1.0-incubating/cookbooks-partitioned/index.html b/content/docs/zh-CN/2.1.0-incubating/cookbooks-partitioned/index.html
index 0f02e51..9c59662 100644
--- a/content/docs/zh-CN/2.1.0-incubating/cookbooks-partitioned/index.html
+++ b/content/docs/zh-CN/2.1.0-incubating/cookbooks-partitioned/index.html
@@ -64,10 +64,11 @@
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRoutingMode(ProducerConfiguration.MessageRoutingMode.SinglePartition);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRoutingMode(MessageRoutingMode.SinglePartition)
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h4><a class="anchor" aria-hidden="true" id="custom-message-router"></a><a href="#custom-message-router" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2 [...]
@@ -88,10 +89,11 @@ producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBy
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-cluster-my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRouter(AlwaysTenRouter);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRouter(<span class="hljs-keyword">new</span> AlwaysTenRouter())
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h2><a class="anchor" aria-hidden="true" id="managing-partitioned-topics"></a><a href="#managing-partitioned-topics" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 1 [...]
diff --git a/content/docs/zh-CN/2.1.0-incubating/functions-api.html b/content/docs/zh-CN/2.1.0-incubating/functions-api.html
index 5aff549..be98ec8 100644
--- a/content/docs/zh-CN/2.1.0-incubating/functions-api.html
+++ b/content/docs/zh-CN/2.1.0-incubating/functions-api.html
@@ -1,5 +1,5 @@
-<!DOCTYPE html><html lang="zh-CN"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>The Pulsar Functions API · Apache Pulsar</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="<p><a href="/docs/zh-CN/2.1.0-incubating/functions-overview">Pulsar Functions</a> provides an easy-to-use API that developers can use to create and manage proces [...]
-"/><meta name="docsearch:version" content="2.1.0-incubating"/><meta name="docsearch:language" content="zh-CN"/><meta property="og:title" content="The Pulsar Functions API · Apache Pulsar"/><meta property="og:type" content="website"/><meta property="og:url" content="https://pulsar.incubator.apache.org/index.html"/><meta property="og:description" content="<p><a href="/docs/zh-CN/2.1.0-incubating/functions-overview">Pulsar Functions</a> provides an easy-to-use AP [...]
+<!DOCTYPE html><html lang="zh-CN"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>The Pulsar Functions API · Apache Pulsar</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="<p><a href="/docs/zh-CN/2.1.0-incubating/functions-overview">Pulsar Functions</a>提供了简便易行的API,开发人员可以利用这些API来给Apache Pulsar消息处理系统创建和管理处理逻辑。 通过使用Pulsar Functions,你可 [...]
+"/><meta name="docsearch:version" content="2.1.0-incubating"/><meta name="docsearch:language" content="zh-CN"/><meta property="og:title" content="The Pulsar Functions API · Apache Pulsar"/><meta property="og:type" content="website"/><meta property="og:url" content="https://pulsar.incubator.apache.org/index.html"/><meta property="og:description" content="<p><a href="/docs/zh-CN/2.1.0-incubating/functions-overview">Pulsar Functions</a>提供了简便易行的API,开发人员可以利用这些API来给 [...]
"/><meta name="twitter:card" content="summary"/><meta name="twitter:image" content="https://pulsar.incubator.apache.org/img/pulsar.svg"/><link rel="shortcut icon" href="/img/pulsar.ico"/><link rel="stylesheet" href="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.css"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/atom-one-dark.min.css"/><link rel="alternate" type="application/atom+xml" href="https://pulsar.incubator.apache.org/blog/atom.x [...]
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
@@ -47,35 +47,35 @@
};
}
});
- </script></nav></div><div class="container mainContainer"><div class="wrapper"><div class="post"><header class="postHeader"><a class="edit-page-link button" href="https://crowdin.com/project/apache-pulsar/zh-CN" target="_blank" rel="noreferrer noopener">Translate</a><h1 class="postHeaderTitle">The Pulsar Functions API</h1></header><article><div><span><p><a href="/docs/zh-CN/2.1.0-incubating/functions-overview">Pulsar Functions</a> provides an easy-to-use API that developers can u [...]
+ </script></nav></div><div class="container mainContainer"><div class="wrapper"><div class="post"><header class="postHeader"><a class="edit-page-link button" href="https://crowdin.com/project/apache-pulsar/zh-CN" target="_blank" rel="noreferrer noopener">Translate</a><h1 class="postHeaderTitle">The Pulsar Functions API</h1></header><article><div><span><p><a href="/docs/zh-CN/2.1.0-incubating/functions-overview">Pulsar Functions</a>提供了简便易行的API,开发人员可以利用这些API来给Apache Pulsar消息处理系统创建和管 [...]
<blockquote>
-<p>For a more in-depth overview of the Pulsar Functions feature, see the <a href="/docs/zh-CN/2.1.0-incubating/functions-overview">Pulsar Functions overview</a>.</p>
+<p>更多关于Pulsar Functions功能介绍,请参见<a href="/docs/zh-CN/2.1.0-incubating/functions-overview">Pulsar Functions overview</a>。</p>
</blockquote>
<h2><a class="anchor" aria-hidden="true" id="核心编程模型"></a><a href="#核心编程模型" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2. [...]
-<p>Pulsar Functions provide a wide range of functionality but are based on a very simple programming model. You can think of Pulsar Functions as lightweight processes that</p>
+<p>Pulsar Functions提供了十分丰富的功能,但都是简单的编程示例。 你可以将Pulsar Functions当作轻量级的程序。</p>
<ul>
-<li>consume messages from one or more Pulsar topics and then</li>
-<li>apply some user-defined processing logic to each incoming message. That processing logic could be just about anything you want, including
+<li>首先,消费来自一个或多个Pulsar主题的消息;</li>
+<li>然后依照一系列自定义的处理逻辑对流入的每一条消息进行处理。处理逻辑完全可以由你设计,包括:
<ul>
-<li>producing the resulting, processed message on another Pulsar topic, or</li>
-<li>doing something else with the message, such as writing results to an external database.</li>
+<li>在另一个Pulsar主题上产生生成的,已处理的消息</li>
+<li>或者对消息做一些诸如写入数据库之类的操作。</li>
</ul></li>
</ul>
-<p>You could use Pulsar Functions, for example, to set up the following processing chain:</p>
+<p>例如,你可以使用Pulsar Functions做如下的一系列操作:</p>
<ul>
-<li>A <a href="#functions-for-python">Python</a> function listens on the <code>raw-sentences</code> topic and "<a href="#example-function">sanitizes</a>" incoming strings (removing extraneous whitespace and converting all characters to lower case) and then publishes the results to a <code>sanitized-sentences</code> topic</li>
-<li>A <a href="#functions-for-java">Java</a> function listens on the <code>sanitized-sentences</code> topic, counts the number of times each word appears within a specified time window, and publishes the results to a <code>results</code> topic</li>
-<li>Finally, a Python function listens on the <code>results</code> topic and writes the results to a MySQL table</li>
+<li>一个监听<code>raw_sentences</code>主题,并对输入的字符串 "<a href="#example-function">清洗</a>" 的<a href="#functions-for-python">Python</a>函数(删除无关的空格并将所有字符转换为小写),之后会把结果发布到<code>sanitized-sentences</code>主题。</li>
+<li>A <a href="#functions-for-java">Java</a> 函数负责监听<code>sanitized-sentences</code> 主题,计算每个单词在指定时间窗口内出现的次数,并将结果发布到<code>results</code> 主题。</li>
+<li>最后,负责监听<code>results</code>主题的一个Python函数将结果写入MySQL数据表。</li>
</ul>
-<h3><a class="anchor" aria-hidden="true" id="example-function"></a><a href="#example-function" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2. [...]
-<p>Here's an example "input sanitizer" function written in Python and stored in a <code>sanitizer.py</code> file:</p>
+<h3><a class="anchor" aria-hidden="true" id="示例函数"></a><a href="#示例函数" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6 [...]
+<p>这儿有一个用Python语言实现的 "input sanitizer" 示例函数,它被存放在<code>sanitizer.py</code>文件里:</p>
<pre><code class="hljs css language-python"><span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">clean_string</span><span class="hljs-params">(s)</span>:</span>
<span class="hljs-keyword">return</span> s.strip().lower()
<span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">process</span><span class="hljs-params">(input)</span>:</span>
<span class="hljs-keyword">return</span> clean_string(input)
</code></pre>
-<p>Some things to note about this Pulsar Function:</p>
+<p>关于Pulsar Function的一些注意事项:</p>
<ul>
<li>There is no client, producer, or consumer object involved. All message "plumbing" is already taken care of for you, enabling you to worry only about processing logic.</li>
<li>No topics, subscription types, tenants, or namespaces are specified in the function logic itself. Instead, topics are specified upon <a href="#example-deployment">deployment</a>. This means that you can use and re-use Pulsar Functions across topics, tenants, and namespaces without needing to hard-code those attributes.</li>
@@ -639,7 +639,7 @@ String wotd = context.getUserConfigValueOrDefault(<span class="hljs-string">"wor
<span class="hljs-keyword">if</span> input == <span class="hljs-number">11</span>:
context.record_metric(<span class="hljs-string">'elevens-count'</span>, <span class="hljs-number">1</span>)
</code></pre>
-</span></div></article></div><div class="docs-prevnext"><a class="docs-prev button" href="/docs/zh-CN/2.1.0-incubating/functions-quickstart"><span class="arrow-prev">← </span><span>Getting started</span></a><a class="docs-next button" href="/docs/zh-CN/2.1.0-incubating/functions-deploying"><span>Deploying functions</span><span class="arrow-next"> →</span></a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a href="#核心编程模型">核心编程模型</a><ul class="toc-headings"><li><a h [...]
+</span></div></article></div><div class="docs-prevnext"><a class="docs-prev button" href="/docs/zh-CN/2.1.0-incubating/functions-quickstart"><span class="arrow-prev">← </span><span>Getting started</span></a><a class="docs-next button" href="/docs/zh-CN/2.1.0-incubating/functions-deploying"><span>Deploying functions</span><span class="arrow-next"> →</span></a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a href="#核心编程模型">核心编程模型</a><ul class="toc-headings"><li><a h [...]
const community = document.querySelector("a[href='#community']").parentNode;
const communityMenu =
'<li>' +
diff --git a/content/docs/zh-CN/2.1.0-incubating/functions-api/index.html b/content/docs/zh-CN/2.1.0-incubating/functions-api/index.html
index 5aff549..be98ec8 100644
--- a/content/docs/zh-CN/2.1.0-incubating/functions-api/index.html
+++ b/content/docs/zh-CN/2.1.0-incubating/functions-api/index.html
@@ -1,5 +1,5 @@
-<!DOCTYPE html><html lang="zh-CN"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>The Pulsar Functions API · Apache Pulsar</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="<p><a href="/docs/zh-CN/2.1.0-incubating/functions-overview">Pulsar Functions</a> provides an easy-to-use API that developers can use to create and manage proces [...]
-"/><meta name="docsearch:version" content="2.1.0-incubating"/><meta name="docsearch:language" content="zh-CN"/><meta property="og:title" content="The Pulsar Functions API · Apache Pulsar"/><meta property="og:type" content="website"/><meta property="og:url" content="https://pulsar.incubator.apache.org/index.html"/><meta property="og:description" content="<p><a href="/docs/zh-CN/2.1.0-incubating/functions-overview">Pulsar Functions</a> provides an easy-to-use AP [...]
+<!DOCTYPE html><html lang="zh-CN"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>The Pulsar Functions API · Apache Pulsar</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="<p><a href="/docs/zh-CN/2.1.0-incubating/functions-overview">Pulsar Functions</a>提供了简便易行的API,开发人员可以利用这些API来给Apache Pulsar消息处理系统创建和管理处理逻辑。 通过使用Pulsar Functions,你可 [...]
+"/><meta name="docsearch:version" content="2.1.0-incubating"/><meta name="docsearch:language" content="zh-CN"/><meta property="og:title" content="The Pulsar Functions API · Apache Pulsar"/><meta property="og:type" content="website"/><meta property="og:url" content="https://pulsar.incubator.apache.org/index.html"/><meta property="og:description" content="<p><a href="/docs/zh-CN/2.1.0-incubating/functions-overview">Pulsar Functions</a>提供了简便易行的API,开发人员可以利用这些API来给 [...]
"/><meta name="twitter:card" content="summary"/><meta name="twitter:image" content="https://pulsar.incubator.apache.org/img/pulsar.svg"/><link rel="shortcut icon" href="/img/pulsar.ico"/><link rel="stylesheet" href="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.css"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/atom-one-dark.min.css"/><link rel="alternate" type="application/atom+xml" href="https://pulsar.incubator.apache.org/blog/atom.x [...]
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
@@ -47,35 +47,35 @@
};
}
});
- </script></nav></div><div class="container mainContainer"><div class="wrapper"><div class="post"><header class="postHeader"><a class="edit-page-link button" href="https://crowdin.com/project/apache-pulsar/zh-CN" target="_blank" rel="noreferrer noopener">Translate</a><h1 class="postHeaderTitle">The Pulsar Functions API</h1></header><article><div><span><p><a href="/docs/zh-CN/2.1.0-incubating/functions-overview">Pulsar Functions</a> provides an easy-to-use API that developers can u [...]
+ </script></nav></div><div class="container mainContainer"><div class="wrapper"><div class="post"><header class="postHeader"><a class="edit-page-link button" href="https://crowdin.com/project/apache-pulsar/zh-CN" target="_blank" rel="noreferrer noopener">Translate</a><h1 class="postHeaderTitle">The Pulsar Functions API</h1></header><article><div><span><p><a href="/docs/zh-CN/2.1.0-incubating/functions-overview">Pulsar Functions</a>提供了简便易行的API,开发人员可以利用这些API来给Apache Pulsar消息处理系统创建和管 [...]
<blockquote>
-<p>For a more in-depth overview of the Pulsar Functions feature, see the <a href="/docs/zh-CN/2.1.0-incubating/functions-overview">Pulsar Functions overview</a>.</p>
+<p>更多关于Pulsar Functions功能介绍,请参见<a href="/docs/zh-CN/2.1.0-incubating/functions-overview">Pulsar Functions overview</a>。</p>
</blockquote>
<h2><a class="anchor" aria-hidden="true" id="核心编程模型"></a><a href="#核心编程模型" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2. [...]
-<p>Pulsar Functions provide a wide range of functionality but are based on a very simple programming model. You can think of Pulsar Functions as lightweight processes that</p>
+<p>Pulsar Functions提供了十分丰富的功能,但都是简单的编程示例。 你可以将Pulsar Functions当作轻量级的程序。</p>
<ul>
-<li>consume messages from one or more Pulsar topics and then</li>
-<li>apply some user-defined processing logic to each incoming message. That processing logic could be just about anything you want, including
+<li>首先,消费来自一个或多个Pulsar主题的消息;</li>
+<li>然后依照一系列自定义的处理逻辑对流入的每一条消息进行处理。处理逻辑完全可以由你设计,包括:
<ul>
-<li>producing the resulting, processed message on another Pulsar topic, or</li>
-<li>doing something else with the message, such as writing results to an external database.</li>
+<li>在另一个Pulsar主题上产生生成的,已处理的消息</li>
+<li>或者对消息做一些诸如写入数据库之类的操作。</li>
</ul></li>
</ul>
-<p>You could use Pulsar Functions, for example, to set up the following processing chain:</p>
+<p>例如,你可以使用Pulsar Functions做如下的一系列操作:</p>
<ul>
-<li>A <a href="#functions-for-python">Python</a> function listens on the <code>raw-sentences</code> topic and "<a href="#example-function">sanitizes</a>" incoming strings (removing extraneous whitespace and converting all characters to lower case) and then publishes the results to a <code>sanitized-sentences</code> topic</li>
-<li>A <a href="#functions-for-java">Java</a> function listens on the <code>sanitized-sentences</code> topic, counts the number of times each word appears within a specified time window, and publishes the results to a <code>results</code> topic</li>
-<li>Finally, a Python function listens on the <code>results</code> topic and writes the results to a MySQL table</li>
+<li>一个监听<code>raw_sentences</code>主题,并对输入的字符串 "<a href="#example-function">清洗</a>" 的<a href="#functions-for-python">Python</a>函数(删除无关的空格并将所有字符转换为小写),之后会把结果发布到<code>sanitized-sentences</code>主题。</li>
+<li>A <a href="#functions-for-java">Java</a> 函数负责监听<code>sanitized-sentences</code> 主题,计算每个单词在指定时间窗口内出现的次数,并将结果发布到<code>results</code> 主题。</li>
+<li>最后,负责监听<code>results</code>主题的一个Python函数将结果写入MySQL数据表。</li>
</ul>
-<h3><a class="anchor" aria-hidden="true" id="example-function"></a><a href="#example-function" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2. [...]
-<p>Here's an example "input sanitizer" function written in Python and stored in a <code>sanitizer.py</code> file:</p>
+<h3><a class="anchor" aria-hidden="true" id="示例函数"></a><a href="#示例函数" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6 [...]
+<p>这儿有一个用Python语言实现的 "input sanitizer" 示例函数,它被存放在<code>sanitizer.py</code>文件里:</p>
<pre><code class="hljs css language-python"><span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">clean_string</span><span class="hljs-params">(s)</span>:</span>
<span class="hljs-keyword">return</span> s.strip().lower()
<span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">process</span><span class="hljs-params">(input)</span>:</span>
<span class="hljs-keyword">return</span> clean_string(input)
</code></pre>
-<p>Some things to note about this Pulsar Function:</p>
+<p>关于Pulsar Function的一些注意事项:</p>
<ul>
<li>There is no client, producer, or consumer object involved. All message "plumbing" is already taken care of for you, enabling you to worry only about processing logic.</li>
<li>No topics, subscription types, tenants, or namespaces are specified in the function logic itself. Instead, topics are specified upon <a href="#example-deployment">deployment</a>. This means that you can use and re-use Pulsar Functions across topics, tenants, and namespaces without needing to hard-code those attributes.</li>
@@ -639,7 +639,7 @@ String wotd = context.getUserConfigValueOrDefault(<span class="hljs-string">"wor
<span class="hljs-keyword">if</span> input == <span class="hljs-number">11</span>:
context.record_metric(<span class="hljs-string">'elevens-count'</span>, <span class="hljs-number">1</span>)
</code></pre>
-</span></div></article></div><div class="docs-prevnext"><a class="docs-prev button" href="/docs/zh-CN/2.1.0-incubating/functions-quickstart"><span class="arrow-prev">← </span><span>Getting started</span></a><a class="docs-next button" href="/docs/zh-CN/2.1.0-incubating/functions-deploying"><span>Deploying functions</span><span class="arrow-next"> →</span></a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a href="#核心编程模型">核心编程模型</a><ul class="toc-headings"><li><a h [...]
+</span></div></article></div><div class="docs-prevnext"><a class="docs-prev button" href="/docs/zh-CN/2.1.0-incubating/functions-quickstart"><span class="arrow-prev">← </span><span>Getting started</span></a><a class="docs-next button" href="/docs/zh-CN/2.1.0-incubating/functions-deploying"><span>Deploying functions</span><span class="arrow-next"> →</span></a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a href="#核心编程模型">核心编程模型</a><ul class="toc-headings"><li><a h [...]
const community = document.querySelector("a[href='#community']").parentNode;
const communityMenu =
'<li>' +
diff --git a/content/docs/zh-CN/2.1.1-incubating/client-libraries-cpp.html b/content/docs/zh-CN/2.1.1-incubating/client-libraries-cpp.html
index 92cbae4..b6184df 100644
--- a/content/docs/zh-CN/2.1.1-incubating/client-libraries-cpp.html
+++ b/content/docs/zh-CN/2.1.1-incubating/client-libraries-cpp.html
@@ -60,9 +60,9 @@
<tr><th>链接</th><th>加密文件</th></tr>
</thead>
<tbody>
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.sha512">sha512</a> [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debug [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_6 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.sha512">sha5 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-d [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1 [...]
</tbody>
</table>
<p>To install a RPM package, download the RPM packages and install them using the following command:</p>
diff --git a/content/docs/zh-CN/2.1.1-incubating/client-libraries-cpp/index.html b/content/docs/zh-CN/2.1.1-incubating/client-libraries-cpp/index.html
index 92cbae4..b6184df 100644
--- a/content/docs/zh-CN/2.1.1-incubating/client-libraries-cpp/index.html
+++ b/content/docs/zh-CN/2.1.1-incubating/client-libraries-cpp/index.html
@@ -60,9 +60,9 @@
<tr><th>链接</th><th>加密文件</th></tr>
</thead>
<tbody>
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.sha512">sha512</a> [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debug [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_6 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.sha512">sha5 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-d [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1 [...]
</tbody>
</table>
<p>To install a RPM package, download the RPM packages and install them using the following command:</p>
diff --git a/content/docs/zh-CN/2.1.1-incubating/cookbooks-partitioned.html b/content/docs/zh-CN/2.1.1-incubating/cookbooks-partitioned.html
index ed6c2ed..010336c 100644
--- a/content/docs/zh-CN/2.1.1-incubating/cookbooks-partitioned.html
+++ b/content/docs/zh-CN/2.1.1-incubating/cookbooks-partitioned.html
@@ -64,10 +64,11 @@
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRoutingMode(ProducerConfiguration.MessageRoutingMode.SinglePartition);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRoutingMode(MessageRoutingMode.SinglePartition)
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h4><a class="anchor" aria-hidden="true" id="custom-message-router"></a><a href="#custom-message-router" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2 [...]
@@ -88,10 +89,11 @@ producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBy
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-cluster-my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRouter(AlwaysTenRouter);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRouter(<span class="hljs-keyword">new</span> AlwaysTenRouter())
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h2><a class="anchor" aria-hidden="true" id="managing-partitioned-topics"></a><a href="#managing-partitioned-topics" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 1 [...]
diff --git a/content/docs/zh-CN/2.1.1-incubating/cookbooks-partitioned/index.html b/content/docs/zh-CN/2.1.1-incubating/cookbooks-partitioned/index.html
index ed6c2ed..010336c 100644
--- a/content/docs/zh-CN/2.1.1-incubating/cookbooks-partitioned/index.html
+++ b/content/docs/zh-CN/2.1.1-incubating/cookbooks-partitioned/index.html
@@ -64,10 +64,11 @@
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRoutingMode(ProducerConfiguration.MessageRoutingMode.SinglePartition);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRoutingMode(MessageRoutingMode.SinglePartition)
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h4><a class="anchor" aria-hidden="true" id="custom-message-router"></a><a href="#custom-message-router" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2 [...]
@@ -88,10 +89,11 @@ producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBy
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-cluster-my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRouter(AlwaysTenRouter);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRouter(<span class="hljs-keyword">new</span> AlwaysTenRouter())
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h2><a class="anchor" aria-hidden="true" id="managing-partitioned-topics"></a><a href="#managing-partitioned-topics" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 1 [...]
diff --git a/content/docs/zh-CN/2.1.1-incubating/functions-api.html b/content/docs/zh-CN/2.1.1-incubating/functions-api.html
index ba53d74..7af8aed 100644
--- a/content/docs/zh-CN/2.1.1-incubating/functions-api.html
+++ b/content/docs/zh-CN/2.1.1-incubating/functions-api.html
@@ -1,5 +1,5 @@
-<!DOCTYPE html><html lang="zh-CN"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>The Pulsar Functions API · Apache Pulsar</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="<p><a href="/docs/zh-CN/2.1.1-incubating/functions-overview">Pulsar Functions</a> provides an easy-to-use API that developers can use to create and manage proces [...]
-"/><meta name="docsearch:version" content="2.1.1-incubating"/><meta name="docsearch:language" content="zh-CN"/><meta property="og:title" content="The Pulsar Functions API · Apache Pulsar"/><meta property="og:type" content="website"/><meta property="og:url" content="https://pulsar.incubator.apache.org/index.html"/><meta property="og:description" content="<p><a href="/docs/zh-CN/2.1.1-incubating/functions-overview">Pulsar Functions</a> provides an easy-to-use AP [...]
+<!DOCTYPE html><html lang="zh-CN"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>The Pulsar Functions API · Apache Pulsar</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="<p><a href="/docs/zh-CN/2.1.1-incubating/functions-overview">Pulsar Functions</a>提供了简便易行的API,开发人员可以利用这些API来给Apache Pulsar消息处理系统创建和管理处理逻辑。 通过使用Pulsar Functions,你可 [...]
+"/><meta name="docsearch:version" content="2.1.1-incubating"/><meta name="docsearch:language" content="zh-CN"/><meta property="og:title" content="The Pulsar Functions API · Apache Pulsar"/><meta property="og:type" content="website"/><meta property="og:url" content="https://pulsar.incubator.apache.org/index.html"/><meta property="og:description" content="<p><a href="/docs/zh-CN/2.1.1-incubating/functions-overview">Pulsar Functions</a>提供了简便易行的API,开发人员可以利用这些API来给 [...]
"/><meta name="twitter:card" content="summary"/><meta name="twitter:image" content="https://pulsar.incubator.apache.org/img/pulsar.svg"/><link rel="shortcut icon" href="/img/pulsar.ico"/><link rel="stylesheet" href="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.css"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/atom-one-dark.min.css"/><link rel="alternate" type="application/atom+xml" href="https://pulsar.incubator.apache.org/blog/atom.x [...]
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
@@ -47,35 +47,35 @@
};
}
});
- </script></nav></div><div class="container mainContainer"><div class="wrapper"><div class="post"><header class="postHeader"><a class="edit-page-link button" href="https://crowdin.com/project/apache-pulsar/zh-CN" target="_blank" rel="noreferrer noopener">Translate</a><h1 class="postHeaderTitle">The Pulsar Functions API</h1></header><article><div><span><p><a href="/docs/zh-CN/2.1.1-incubating/functions-overview">Pulsar Functions</a> provides an easy-to-use API that developers can u [...]
+ </script></nav></div><div class="container mainContainer"><div class="wrapper"><div class="post"><header class="postHeader"><a class="edit-page-link button" href="https://crowdin.com/project/apache-pulsar/zh-CN" target="_blank" rel="noreferrer noopener">Translate</a><h1 class="postHeaderTitle">The Pulsar Functions API</h1></header><article><div><span><p><a href="/docs/zh-CN/2.1.1-incubating/functions-overview">Pulsar Functions</a>提供了简便易行的API,开发人员可以利用这些API来给Apache Pulsar消息处理系统创建和管 [...]
<blockquote>
-<p>For a more in-depth overview of the Pulsar Functions feature, see the <a href="/docs/zh-CN/2.1.1-incubating/functions-overview">Pulsar Functions overview</a>.</p>
+<p>更多关于Pulsar Functions功能介绍,请参见<a href="/docs/zh-CN/2.1.1-incubating/functions-overview">Pulsar Functions overview</a>。</p>
</blockquote>
<h2><a class="anchor" aria-hidden="true" id="核心编程模型"></a><a href="#核心编程模型" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2. [...]
-<p>Pulsar Functions provide a wide range of functionality but are based on a very simple programming model. You can think of Pulsar Functions as lightweight processes that</p>
+<p>Pulsar Functions提供了十分丰富的功能,但都是简单的编程示例。 你可以将Pulsar Functions当作轻量级的程序。</p>
<ul>
-<li>consume messages from one or more Pulsar topics and then</li>
-<li>apply some user-defined processing logic to each incoming message. That processing logic could be just about anything you want, including
+<li>首先,消费来自一个或多个Pulsar主题的消息;</li>
+<li>然后依照一系列自定义的处理逻辑对流入的每一条消息进行处理。处理逻辑完全可以由你设计,包括:
<ul>
-<li>producing the resulting, processed message on another Pulsar topic, or</li>
-<li>doing something else with the message, such as writing results to an external database.</li>
+<li>在另一个Pulsar主题上产生生成的,已处理的消息</li>
+<li>或者对消息做一些诸如写入数据库之类的操作。</li>
</ul></li>
</ul>
-<p>You could use Pulsar Functions, for example, to set up the following processing chain:</p>
+<p>例如,你可以使用Pulsar Functions做如下的一系列操作:</p>
<ul>
-<li>A <a href="#functions-for-python">Python</a> function listens on the <code>raw-sentences</code> topic and "<a href="#example-function">sanitizes</a>" incoming strings (removing extraneous whitespace and converting all characters to lower case) and then publishes the results to a <code>sanitized-sentences</code> topic</li>
-<li>A <a href="#functions-for-java">Java</a> function listens on the <code>sanitized-sentences</code> topic, counts the number of times each word appears within a specified time window, and publishes the results to a <code>results</code> topic</li>
-<li>Finally, a Python function listens on the <code>results</code> topic and writes the results to a MySQL table</li>
+<li>一个监听<code>raw_sentences</code>主题,并对输入的字符串 "<a href="#example-function">清洗</a>" 的<a href="#functions-for-python">Python</a>函数(删除无关的空格并将所有字符转换为小写),之后会把结果发布到<code>sanitized-sentences</code>主题。</li>
+<li>A <a href="#functions-for-java">Java</a> 函数负责监听<code>sanitized-sentences</code> 主题,计算每个单词在指定时间窗口内出现的次数,并将结果发布到<code>results</code> 主题。</li>
+<li>最后,负责监听<code>results</code>主题的一个Python函数将结果写入MySQL数据表。</li>
</ul>
-<h3><a class="anchor" aria-hidden="true" id="example-function"></a><a href="#example-function" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2. [...]
-<p>Here's an example "input sanitizer" function written in Python and stored in a <code>sanitizer.py</code> file:</p>
+<h3><a class="anchor" aria-hidden="true" id="示例函数"></a><a href="#示例函数" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6 [...]
+<p>这儿有一个用Python语言实现的 "input sanitizer" 示例函数,它被存放在<code>sanitizer.py</code>文件里:</p>
<pre><code class="hljs css language-python"><span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">clean_string</span><span class="hljs-params">(s)</span>:</span>
<span class="hljs-keyword">return</span> s.strip().lower()
<span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">process</span><span class="hljs-params">(input)</span>:</span>
<span class="hljs-keyword">return</span> clean_string(input)
</code></pre>
-<p>Some things to note about this Pulsar Function:</p>
+<p>关于Pulsar Function的一些注意事项:</p>
<ul>
<li>There is no client, producer, or consumer object involved. All message "plumbing" is already taken care of for you, enabling you to worry only about processing logic.</li>
<li>No topics, subscription types, tenants, or namespaces are specified in the function logic itself. Instead, topics are specified upon <a href="#example-deployment">deployment</a>. This means that you can use and re-use Pulsar Functions across topics, tenants, and namespaces without needing to hard-code those attributes.</li>
@@ -632,7 +632,7 @@ String wotd = context.getUserConfigValueOrDefault(<span class="hljs-string">"wor
<span class="hljs-keyword">if</span> input == <span class="hljs-number">11</span>:
context.record_metric(<span class="hljs-string">'elevens-count'</span>, <span class="hljs-number">1</span>)
</code></pre>
-</span></div></article></div><div class="docs-prevnext"><a class="docs-prev button" href="/docs/zh-CN/2.1.1-incubating/functions-quickstart"><span class="arrow-prev">← </span><span>Getting started</span></a><a class="docs-next button" href="/docs/zh-CN/2.1.1-incubating/functions-deploying"><span>Deploying functions</span><span class="arrow-next"> →</span></a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a href="#核心编程模型">核心编程模型</a><ul class="toc-headings"><li><a h [...]
+</span></div></article></div><div class="docs-prevnext"><a class="docs-prev button" href="/docs/zh-CN/2.1.1-incubating/functions-quickstart"><span class="arrow-prev">← </span><span>Getting started</span></a><a class="docs-next button" href="/docs/zh-CN/2.1.1-incubating/functions-deploying"><span>Deploying functions</span><span class="arrow-next"> →</span></a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a href="#核心编程模型">核心编程模型</a><ul class="toc-headings"><li><a h [...]
const community = document.querySelector("a[href='#community']").parentNode;
const communityMenu =
'<li>' +
diff --git a/content/docs/zh-CN/2.1.1-incubating/functions-api/index.html b/content/docs/zh-CN/2.1.1-incubating/functions-api/index.html
index ba53d74..7af8aed 100644
--- a/content/docs/zh-CN/2.1.1-incubating/functions-api/index.html
+++ b/content/docs/zh-CN/2.1.1-incubating/functions-api/index.html
@@ -1,5 +1,5 @@
-<!DOCTYPE html><html lang="zh-CN"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>The Pulsar Functions API · Apache Pulsar</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="<p><a href="/docs/zh-CN/2.1.1-incubating/functions-overview">Pulsar Functions</a> provides an easy-to-use API that developers can use to create and manage proces [...]
-"/><meta name="docsearch:version" content="2.1.1-incubating"/><meta name="docsearch:language" content="zh-CN"/><meta property="og:title" content="The Pulsar Functions API · Apache Pulsar"/><meta property="og:type" content="website"/><meta property="og:url" content="https://pulsar.incubator.apache.org/index.html"/><meta property="og:description" content="<p><a href="/docs/zh-CN/2.1.1-incubating/functions-overview">Pulsar Functions</a> provides an easy-to-use AP [...]
+<!DOCTYPE html><html lang="zh-CN"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>The Pulsar Functions API · Apache Pulsar</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="<p><a href="/docs/zh-CN/2.1.1-incubating/functions-overview">Pulsar Functions</a>提供了简便易行的API,开发人员可以利用这些API来给Apache Pulsar消息处理系统创建和管理处理逻辑。 通过使用Pulsar Functions,你可 [...]
+"/><meta name="docsearch:version" content="2.1.1-incubating"/><meta name="docsearch:language" content="zh-CN"/><meta property="og:title" content="The Pulsar Functions API · Apache Pulsar"/><meta property="og:type" content="website"/><meta property="og:url" content="https://pulsar.incubator.apache.org/index.html"/><meta property="og:description" content="<p><a href="/docs/zh-CN/2.1.1-incubating/functions-overview">Pulsar Functions</a>提供了简便易行的API,开发人员可以利用这些API来给 [...]
"/><meta name="twitter:card" content="summary"/><meta name="twitter:image" content="https://pulsar.incubator.apache.org/img/pulsar.svg"/><link rel="shortcut icon" href="/img/pulsar.ico"/><link rel="stylesheet" href="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.css"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/atom-one-dark.min.css"/><link rel="alternate" type="application/atom+xml" href="https://pulsar.incubator.apache.org/blog/atom.x [...]
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
@@ -47,35 +47,35 @@
};
}
});
- </script></nav></div><div class="container mainContainer"><div class="wrapper"><div class="post"><header class="postHeader"><a class="edit-page-link button" href="https://crowdin.com/project/apache-pulsar/zh-CN" target="_blank" rel="noreferrer noopener">Translate</a><h1 class="postHeaderTitle">The Pulsar Functions API</h1></header><article><div><span><p><a href="/docs/zh-CN/2.1.1-incubating/functions-overview">Pulsar Functions</a> provides an easy-to-use API that developers can u [...]
+ </script></nav></div><div class="container mainContainer"><div class="wrapper"><div class="post"><header class="postHeader"><a class="edit-page-link button" href="https://crowdin.com/project/apache-pulsar/zh-CN" target="_blank" rel="noreferrer noopener">Translate</a><h1 class="postHeaderTitle">The Pulsar Functions API</h1></header><article><div><span><p><a href="/docs/zh-CN/2.1.1-incubating/functions-overview">Pulsar Functions</a>提供了简便易行的API,开发人员可以利用这些API来给Apache Pulsar消息处理系统创建和管 [...]
<blockquote>
-<p>For a more in-depth overview of the Pulsar Functions feature, see the <a href="/docs/zh-CN/2.1.1-incubating/functions-overview">Pulsar Functions overview</a>.</p>
+<p>更多关于Pulsar Functions功能介绍,请参见<a href="/docs/zh-CN/2.1.1-incubating/functions-overview">Pulsar Functions overview</a>。</p>
</blockquote>
<h2><a class="anchor" aria-hidden="true" id="核心编程模型"></a><a href="#核心编程模型" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2. [...]
-<p>Pulsar Functions provide a wide range of functionality but are based on a very simple programming model. You can think of Pulsar Functions as lightweight processes that</p>
+<p>Pulsar Functions提供了十分丰富的功能,但都是简单的编程示例。 你可以将Pulsar Functions当作轻量级的程序。</p>
<ul>
-<li>consume messages from one or more Pulsar topics and then</li>
-<li>apply some user-defined processing logic to each incoming message. That processing logic could be just about anything you want, including
+<li>首先,消费来自一个或多个Pulsar主题的消息;</li>
+<li>然后依照一系列自定义的处理逻辑对流入的每一条消息进行处理。处理逻辑完全可以由你设计,包括:
<ul>
-<li>producing the resulting, processed message on another Pulsar topic, or</li>
-<li>doing something else with the message, such as writing results to an external database.</li>
+<li>在另一个Pulsar主题上产生生成的,已处理的消息</li>
+<li>或者对消息做一些诸如写入数据库之类的操作。</li>
</ul></li>
</ul>
-<p>You could use Pulsar Functions, for example, to set up the following processing chain:</p>
+<p>例如,你可以使用Pulsar Functions做如下的一系列操作:</p>
<ul>
-<li>A <a href="#functions-for-python">Python</a> function listens on the <code>raw-sentences</code> topic and "<a href="#example-function">sanitizes</a>" incoming strings (removing extraneous whitespace and converting all characters to lower case) and then publishes the results to a <code>sanitized-sentences</code> topic</li>
-<li>A <a href="#functions-for-java">Java</a> function listens on the <code>sanitized-sentences</code> topic, counts the number of times each word appears within a specified time window, and publishes the results to a <code>results</code> topic</li>
-<li>Finally, a Python function listens on the <code>results</code> topic and writes the results to a MySQL table</li>
+<li>一个监听<code>raw_sentences</code>主题,并对输入的字符串 "<a href="#example-function">清洗</a>" 的<a href="#functions-for-python">Python</a>函数(删除无关的空格并将所有字符转换为小写),之后会把结果发布到<code>sanitized-sentences</code>主题。</li>
+<li>A <a href="#functions-for-java">Java</a> 函数负责监听<code>sanitized-sentences</code> 主题,计算每个单词在指定时间窗口内出现的次数,并将结果发布到<code>results</code> 主题。</li>
+<li>最后,负责监听<code>results</code>主题的一个Python函数将结果写入MySQL数据表。</li>
</ul>
-<h3><a class="anchor" aria-hidden="true" id="example-function"></a><a href="#example-function" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2. [...]
-<p>Here's an example "input sanitizer" function written in Python and stored in a <code>sanitizer.py</code> file:</p>
+<h3><a class="anchor" aria-hidden="true" id="示例函数"></a><a href="#示例函数" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6 [...]
+<p>这儿有一个用Python语言实现的 "input sanitizer" 示例函数,它被存放在<code>sanitizer.py</code>文件里:</p>
<pre><code class="hljs css language-python"><span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">clean_string</span><span class="hljs-params">(s)</span>:</span>
<span class="hljs-keyword">return</span> s.strip().lower()
<span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">process</span><span class="hljs-params">(input)</span>:</span>
<span class="hljs-keyword">return</span> clean_string(input)
</code></pre>
-<p>Some things to note about this Pulsar Function:</p>
+<p>关于Pulsar Function的一些注意事项:</p>
<ul>
<li>There is no client, producer, or consumer object involved. All message "plumbing" is already taken care of for you, enabling you to worry only about processing logic.</li>
<li>No topics, subscription types, tenants, or namespaces are specified in the function logic itself. Instead, topics are specified upon <a href="#example-deployment">deployment</a>. This means that you can use and re-use Pulsar Functions across topics, tenants, and namespaces without needing to hard-code those attributes.</li>
@@ -632,7 +632,7 @@ String wotd = context.getUserConfigValueOrDefault(<span class="hljs-string">"wor
<span class="hljs-keyword">if</span> input == <span class="hljs-number">11</span>:
context.record_metric(<span class="hljs-string">'elevens-count'</span>, <span class="hljs-number">1</span>)
</code></pre>
-</span></div></article></div><div class="docs-prevnext"><a class="docs-prev button" href="/docs/zh-CN/2.1.1-incubating/functions-quickstart"><span class="arrow-prev">← </span><span>Getting started</span></a><a class="docs-next button" href="/docs/zh-CN/2.1.1-incubating/functions-deploying"><span>Deploying functions</span><span class="arrow-next"> →</span></a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a href="#核心编程模型">核心编程模型</a><ul class="toc-headings"><li><a h [...]
+</span></div></article></div><div class="docs-prevnext"><a class="docs-prev button" href="/docs/zh-CN/2.1.1-incubating/functions-quickstart"><span class="arrow-prev">← </span><span>Getting started</span></a><a class="docs-next button" href="/docs/zh-CN/2.1.1-incubating/functions-deploying"><span>Deploying functions</span><span class="arrow-next"> →</span></a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a href="#核心编程模型">核心编程模型</a><ul class="toc-headings"><li><a h [...]
const community = document.querySelector("a[href='#community']").parentNode;
const communityMenu =
'<li>' +
diff --git a/content/docs/zh-CN/client-libraries-cpp.html b/content/docs/zh-CN/client-libraries-cpp.html
index d9eaa36..a49aa04 100644
--- a/content/docs/zh-CN/client-libraries-cpp.html
+++ b/content/docs/zh-CN/client-libraries-cpp.html
@@ -60,9 +60,9 @@
<tr><th>链接</th><th>加密文件</th></tr>
</thead>
<tbody>
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.sha512">sha512</a> [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debug [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_6 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.sha512">sha5 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-d [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1 [...]
</tbody>
</table>
<p>To install a RPM package, download the RPM packages and install them using the following command:</p>
diff --git a/content/docs/zh-CN/client-libraries-cpp/index.html b/content/docs/zh-CN/client-libraries-cpp/index.html
index d9eaa36..a49aa04 100644
--- a/content/docs/zh-CN/client-libraries-cpp/index.html
+++ b/content/docs/zh-CN/client-libraries-cpp/index.html
@@ -60,9 +60,9 @@
<tr><th>链接</th><th>加密文件</th></tr>
</thead>
<tbody>
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.sha512">sha512</a> [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debug [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_6 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.sha512">sha5 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-d [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1 [...]
</tbody>
</table>
<p>To install a RPM package, download the RPM packages and install them using the following command:</p>
diff --git a/content/docs/zh-CN/cookbooks-partitioned.html b/content/docs/zh-CN/cookbooks-partitioned.html
index 59a28be..b349932 100644
--- a/content/docs/zh-CN/cookbooks-partitioned.html
+++ b/content/docs/zh-CN/cookbooks-partitioned.html
@@ -64,10 +64,11 @@
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRoutingMode(ProducerConfiguration.MessageRoutingMode.SinglePartition);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRoutingMode(MessageRoutingMode.SinglePartition)
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h4><a class="anchor" aria-hidden="true" id="custom-message-router"></a><a href="#custom-message-router" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2 [...]
@@ -88,10 +89,11 @@ producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBy
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-cluster-my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRouter(AlwaysTenRouter);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRouter(<span class="hljs-keyword">new</span> AlwaysTenRouter())
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h2><a class="anchor" aria-hidden="true" id="managing-partitioned-topics"></a><a href="#managing-partitioned-topics" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 1 [...]
diff --git a/content/docs/zh-CN/cookbooks-partitioned/index.html b/content/docs/zh-CN/cookbooks-partitioned/index.html
index 59a28be..b349932 100644
--- a/content/docs/zh-CN/cookbooks-partitioned/index.html
+++ b/content/docs/zh-CN/cookbooks-partitioned/index.html
@@ -64,10 +64,11 @@
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRoutingMode(ProducerConfiguration.MessageRoutingMode.SinglePartition);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRoutingMode(MessageRoutingMode.SinglePartition)
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h4><a class="anchor" aria-hidden="true" id="custom-message-router"></a><a href="#custom-message-router" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2 [...]
@@ -88,10 +89,11 @@ producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBy
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-cluster-my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRouter(AlwaysTenRouter);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRouter(<span class="hljs-keyword">new</span> AlwaysTenRouter())
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h2><a class="anchor" aria-hidden="true" id="managing-partitioned-topics"></a><a href="#managing-partitioned-topics" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 1 [...]
diff --git a/content/docs/zh-CN/functions-api.html b/content/docs/zh-CN/functions-api.html
index d128358..46f0a90 100644
--- a/content/docs/zh-CN/functions-api.html
+++ b/content/docs/zh-CN/functions-api.html
@@ -1,5 +1,5 @@
-<!DOCTYPE html><html lang="zh-CN"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>The Pulsar Functions API · Apache Pulsar</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="<p><a href="/docs/zh-CN/functions-overview">Pulsar Functions</a> provides an easy-to-use API that developers can use to create and manage processing logic for th [...]
-"/><meta name="docsearch:version" content="2.2.0"/><meta name="docsearch:language" content="zh-CN"/><meta property="og:title" content="The Pulsar Functions API · Apache Pulsar"/><meta property="og:type" content="website"/><meta property="og:url" content="https://pulsar.incubator.apache.org/index.html"/><meta property="og:description" content="<p><a href="/docs/zh-CN/functions-overview">Pulsar Functions</a> provides an easy-to-use API that developers can use to [...]
+<!DOCTYPE html><html lang="zh-CN"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>The Pulsar Functions API · Apache Pulsar</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="<p><a href="/docs/zh-CN/functions-overview">Pulsar Functions</a>提供了简便易行的API,开发人员可以利用这些API来给Apache Pulsar消息处理系统创建和管理处理逻辑。 通过使用Pulsar Functions,你可以编写任何复杂程度的<a h [...]
+"/><meta name="docsearch:version" content="2.2.0"/><meta name="docsearch:language" content="zh-CN"/><meta property="og:title" content="The Pulsar Functions API · Apache Pulsar"/><meta property="og:type" content="website"/><meta property="og:url" content="https://pulsar.incubator.apache.org/index.html"/><meta property="og:description" content="<p><a href="/docs/zh-CN/functions-overview">Pulsar Functions</a>提供了简便易行的API,开发人员可以利用这些API来给Apache Pulsar消息处理系统创建和管理处理逻辑 [...]
"/><meta name="twitter:card" content="summary"/><meta name="twitter:image" content="https://pulsar.incubator.apache.org/img/pulsar.svg"/><link rel="shortcut icon" href="/img/pulsar.ico"/><link rel="stylesheet" href="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.css"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/atom-one-dark.min.css"/><link rel="alternate" type="application/atom+xml" href="https://pulsar.incubator.apache.org/blog/atom.x [...]
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
@@ -47,35 +47,35 @@
};
}
});
- </script></nav></div><div class="container mainContainer"><div class="wrapper"><div class="post"><header class="postHeader"><a class="edit-page-link button" href="https://crowdin.com/project/apache-pulsar/zh-CN" target="_blank" rel="noreferrer noopener">Translate</a><h1 class="postHeaderTitle">The Pulsar Functions API</h1></header><article><div><span><p><a href="/docs/zh-CN/functions-overview">Pulsar Functions</a> provides an easy-to-use API that developers can use to create and [...]
+ </script></nav></div><div class="container mainContainer"><div class="wrapper"><div class="post"><header class="postHeader"><a class="edit-page-link button" href="https://crowdin.com/project/apache-pulsar/zh-CN" target="_blank" rel="noreferrer noopener">Translate</a><h1 class="postHeaderTitle">The Pulsar Functions API</h1></header><article><div><span><p><a href="/docs/zh-CN/functions-overview">Pulsar Functions</a>提供了简便易行的API,开发人员可以利用这些API来给Apache Pulsar消息处理系统创建和管理处理逻辑。 通过使用Pulsar [...]
<blockquote>
-<p>For a more in-depth overview of the Pulsar Functions feature, see the <a href="/docs/zh-CN/functions-overview">Pulsar Functions overview</a>.</p>
+<p>更多关于Pulsar Functions功能介绍,请参见<a href="/docs/zh-CN/functions-overview">Pulsar Functions overview</a>。</p>
</blockquote>
<h2><a class="anchor" aria-hidden="true" id="核心编程模型"></a><a href="#核心编程模型" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2. [...]
-<p>Pulsar Functions provide a wide range of functionality but are based on a very simple programming model. You can think of Pulsar Functions as lightweight processes that</p>
+<p>Pulsar Functions提供了十分丰富的功能,但都是简单的编程示例。 你可以将Pulsar Functions当作轻量级的程序。</p>
<ul>
-<li>consume messages from one or more Pulsar topics and then</li>
-<li>apply some user-defined processing logic to each incoming message. That processing logic could be just about anything you want, including
+<li>首先,消费来自一个或多个Pulsar主题的消息;</li>
+<li>然后依照一系列自定义的处理逻辑对流入的每一条消息进行处理。处理逻辑完全可以由你设计,包括:
<ul>
-<li>producing the resulting, processed message on another Pulsar topic, or</li>
-<li>doing something else with the message, such as writing results to an external database.</li>
+<li>在另一个Pulsar主题上产生生成的,已处理的消息</li>
+<li>或者对消息做一些诸如写入数据库之类的操作。</li>
</ul></li>
</ul>
-<p>You could use Pulsar Functions, for example, to set up the following processing chain:</p>
+<p>例如,你可以使用Pulsar Functions做如下的一系列操作:</p>
<ul>
-<li>A <a href="#functions-for-python">Python</a> function listens on the <code>raw-sentences</code> topic and "<a href="#example-function">sanitizes</a>" incoming strings (removing extraneous whitespace and converting all characters to lower case) and then publishes the results to a <code>sanitized-sentences</code> topic</li>
-<li>A <a href="#functions-for-java">Java</a> function listens on the <code>sanitized-sentences</code> topic, counts the number of times each word appears within a specified time window, and publishes the results to a <code>results</code> topic</li>
-<li>Finally, a Python function listens on the <code>results</code> topic and writes the results to a MySQL table</li>
+<li>一个监听<code>raw_sentences</code>主题,并对输入的字符串 "<a href="#example-function">清洗</a>" 的<a href="#functions-for-python">Python</a>函数(删除无关的空格并将所有字符转换为小写),之后会把结果发布到<code>sanitized-sentences</code>主题。</li>
+<li>A <a href="#functions-for-java">Java</a> 函数负责监听<code>sanitized-sentences</code> 主题,计算每个单词在指定时间窗口内出现的次数,并将结果发布到<code>results</code> 主题。</li>
+<li>最后,负责监听<code>results</code>主题的一个Python函数将结果写入MySQL数据表。</li>
</ul>
-<h3><a class="anchor" aria-hidden="true" id="example-function"></a><a href="#example-function" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2. [...]
-<p>Here's an example "input sanitizer" function written in Python and stored in a <code>sanitizer.py</code> file:</p>
+<h3><a class="anchor" aria-hidden="true" id="示例函数"></a><a href="#示例函数" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6 [...]
+<p>这儿有一个用Python语言实现的 "input sanitizer" 示例函数,它被存放在<code>sanitizer.py</code>文件里:</p>
<pre><code class="hljs css language-python"><span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">clean_string</span><span class="hljs-params">(s)</span>:</span>
<span class="hljs-keyword">return</span> s.strip().lower()
<span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">process</span><span class="hljs-params">(input)</span>:</span>
<span class="hljs-keyword">return</span> clean_string(input)
</code></pre>
-<p>Some things to note about this Pulsar Function:</p>
+<p>关于Pulsar Function的一些注意事项:</p>
<ul>
<li>There is no client, producer, or consumer object involved. All message "plumbing" is already taken care of for you, enabling you to worry only about processing logic.</li>
<li>No topics, subscription types, tenants, or namespaces are specified in the function logic itself. Instead, topics are specified upon <a href="#example-deployment">deployment</a>. This means that you can use and re-use Pulsar Functions across topics, tenants, and namespaces without needing to hard-code those attributes.</li>
@@ -640,7 +640,7 @@ String wotd = context.getUserConfigValueOrDefault(<span class="hljs-string">"wor
<span class="hljs-keyword">if</span> input == <span class="hljs-number">11</span>:
context.record_metric(<span class="hljs-string">'elevens-count'</span>, <span class="hljs-number">1</span>)
</code></pre>
-</span></div></article></div><div class="docs-prevnext"><a class="docs-prev button" href="/docs/zh-CN/functions-quickstart"><span class="arrow-prev">← </span><span>Getting started</span></a><a class="docs-next button" href="/docs/zh-CN/functions-deploying"><span>Deploying functions</span><span class="arrow-next"> →</span></a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a href="#核心编程模型">核心编程模型</a><ul class="toc-headings"><li><a href="#example-function">Example fu [...]
+</span></div></article></div><div class="docs-prevnext"><a class="docs-prev button" href="/docs/zh-CN/functions-quickstart"><span class="arrow-prev">← </span><span>Getting started</span></a><a class="docs-next button" href="/docs/zh-CN/functions-deploying"><span>Deploying functions</span><span class="arrow-next"> →</span></a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a href="#核心编程模型">核心编程模型</a><ul class="toc-headings"><li><a href="#示例函数">示例函数</a></li><li><a hr [...]
const community = document.querySelector("a[href='#community']").parentNode;
const communityMenu =
'<li>' +
diff --git a/content/docs/zh-CN/functions-api/index.html b/content/docs/zh-CN/functions-api/index.html
index d128358..46f0a90 100644
--- a/content/docs/zh-CN/functions-api/index.html
+++ b/content/docs/zh-CN/functions-api/index.html
@@ -1,5 +1,5 @@
-<!DOCTYPE html><html lang="zh-CN"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>The Pulsar Functions API · Apache Pulsar</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="<p><a href="/docs/zh-CN/functions-overview">Pulsar Functions</a> provides an easy-to-use API that developers can use to create and manage processing logic for th [...]
-"/><meta name="docsearch:version" content="2.2.0"/><meta name="docsearch:language" content="zh-CN"/><meta property="og:title" content="The Pulsar Functions API · Apache Pulsar"/><meta property="og:type" content="website"/><meta property="og:url" content="https://pulsar.incubator.apache.org/index.html"/><meta property="og:description" content="<p><a href="/docs/zh-CN/functions-overview">Pulsar Functions</a> provides an easy-to-use API that developers can use to [...]
+<!DOCTYPE html><html lang="zh-CN"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>The Pulsar Functions API · Apache Pulsar</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="<p><a href="/docs/zh-CN/functions-overview">Pulsar Functions</a>提供了简便易行的API,开发人员可以利用这些API来给Apache Pulsar消息处理系统创建和管理处理逻辑。 通过使用Pulsar Functions,你可以编写任何复杂程度的<a h [...]
+"/><meta name="docsearch:version" content="2.2.0"/><meta name="docsearch:language" content="zh-CN"/><meta property="og:title" content="The Pulsar Functions API · Apache Pulsar"/><meta property="og:type" content="website"/><meta property="og:url" content="https://pulsar.incubator.apache.org/index.html"/><meta property="og:description" content="<p><a href="/docs/zh-CN/functions-overview">Pulsar Functions</a>提供了简便易行的API,开发人员可以利用这些API来给Apache Pulsar消息处理系统创建和管理处理逻辑 [...]
"/><meta name="twitter:card" content="summary"/><meta name="twitter:image" content="https://pulsar.incubator.apache.org/img/pulsar.svg"/><link rel="shortcut icon" href="/img/pulsar.ico"/><link rel="stylesheet" href="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.css"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/atom-one-dark.min.css"/><link rel="alternate" type="application/atom+xml" href="https://pulsar.incubator.apache.org/blog/atom.x [...]
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
@@ -47,35 +47,35 @@
};
}
});
- </script></nav></div><div class="container mainContainer"><div class="wrapper"><div class="post"><header class="postHeader"><a class="edit-page-link button" href="https://crowdin.com/project/apache-pulsar/zh-CN" target="_blank" rel="noreferrer noopener">Translate</a><h1 class="postHeaderTitle">The Pulsar Functions API</h1></header><article><div><span><p><a href="/docs/zh-CN/functions-overview">Pulsar Functions</a> provides an easy-to-use API that developers can use to create and [...]
+ </script></nav></div><div class="container mainContainer"><div class="wrapper"><div class="post"><header class="postHeader"><a class="edit-page-link button" href="https://crowdin.com/project/apache-pulsar/zh-CN" target="_blank" rel="noreferrer noopener">Translate</a><h1 class="postHeaderTitle">The Pulsar Functions API</h1></header><article><div><span><p><a href="/docs/zh-CN/functions-overview">Pulsar Functions</a>提供了简便易行的API,开发人员可以利用这些API来给Apache Pulsar消息处理系统创建和管理处理逻辑。 通过使用Pulsar [...]
<blockquote>
-<p>For a more in-depth overview of the Pulsar Functions feature, see the <a href="/docs/zh-CN/functions-overview">Pulsar Functions overview</a>.</p>
+<p>更多关于Pulsar Functions功能介绍,请参见<a href="/docs/zh-CN/functions-overview">Pulsar Functions overview</a>。</p>
</blockquote>
<h2><a class="anchor" aria-hidden="true" id="核心编程模型"></a><a href="#核心编程模型" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2. [...]
-<p>Pulsar Functions provide a wide range of functionality but are based on a very simple programming model. You can think of Pulsar Functions as lightweight processes that</p>
+<p>Pulsar Functions提供了十分丰富的功能,但都是简单的编程示例。 你可以将Pulsar Functions当作轻量级的程序。</p>
<ul>
-<li>consume messages from one or more Pulsar topics and then</li>
-<li>apply some user-defined processing logic to each incoming message. That processing logic could be just about anything you want, including
+<li>首先,消费来自一个或多个Pulsar主题的消息;</li>
+<li>然后依照一系列自定义的处理逻辑对流入的每一条消息进行处理。处理逻辑完全可以由你设计,包括:
<ul>
-<li>producing the resulting, processed message on another Pulsar topic, or</li>
-<li>doing something else with the message, such as writing results to an external database.</li>
+<li>在另一个Pulsar主题上产生生成的,已处理的消息</li>
+<li>或者对消息做一些诸如写入数据库之类的操作。</li>
</ul></li>
</ul>
-<p>You could use Pulsar Functions, for example, to set up the following processing chain:</p>
+<p>例如,你可以使用Pulsar Functions做如下的一系列操作:</p>
<ul>
-<li>A <a href="#functions-for-python">Python</a> function listens on the <code>raw-sentences</code> topic and "<a href="#example-function">sanitizes</a>" incoming strings (removing extraneous whitespace and converting all characters to lower case) and then publishes the results to a <code>sanitized-sentences</code> topic</li>
-<li>A <a href="#functions-for-java">Java</a> function listens on the <code>sanitized-sentences</code> topic, counts the number of times each word appears within a specified time window, and publishes the results to a <code>results</code> topic</li>
-<li>Finally, a Python function listens on the <code>results</code> topic and writes the results to a MySQL table</li>
+<li>一个监听<code>raw_sentences</code>主题,并对输入的字符串 "<a href="#example-function">清洗</a>" 的<a href="#functions-for-python">Python</a>函数(删除无关的空格并将所有字符转换为小写),之后会把结果发布到<code>sanitized-sentences</code>主题。</li>
+<li>A <a href="#functions-for-java">Java</a> 函数负责监听<code>sanitized-sentences</code> 主题,计算每个单词在指定时间窗口内出现的次数,并将结果发布到<code>results</code> 主题。</li>
+<li>最后,负责监听<code>results</code>主题的一个Python函数将结果写入MySQL数据表。</li>
</ul>
-<h3><a class="anchor" aria-hidden="true" id="example-function"></a><a href="#example-function" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2. [...]
-<p>Here's an example "input sanitizer" function written in Python and stored in a <code>sanitizer.py</code> file:</p>
+<h3><a class="anchor" aria-hidden="true" id="示例函数"></a><a href="#示例函数" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6 [...]
+<p>这儿有一个用Python语言实现的 "input sanitizer" 示例函数,它被存放在<code>sanitizer.py</code>文件里:</p>
<pre><code class="hljs css language-python"><span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">clean_string</span><span class="hljs-params">(s)</span>:</span>
<span class="hljs-keyword">return</span> s.strip().lower()
<span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">process</span><span class="hljs-params">(input)</span>:</span>
<span class="hljs-keyword">return</span> clean_string(input)
</code></pre>
-<p>Some things to note about this Pulsar Function:</p>
+<p>关于Pulsar Function的一些注意事项:</p>
<ul>
<li>There is no client, producer, or consumer object involved. All message "plumbing" is already taken care of for you, enabling you to worry only about processing logic.</li>
<li>No topics, subscription types, tenants, or namespaces are specified in the function logic itself. Instead, topics are specified upon <a href="#example-deployment">deployment</a>. This means that you can use and re-use Pulsar Functions across topics, tenants, and namespaces without needing to hard-code those attributes.</li>
@@ -640,7 +640,7 @@ String wotd = context.getUserConfigValueOrDefault(<span class="hljs-string">"wor
<span class="hljs-keyword">if</span> input == <span class="hljs-number">11</span>:
context.record_metric(<span class="hljs-string">'elevens-count'</span>, <span class="hljs-number">1</span>)
</code></pre>
-</span></div></article></div><div class="docs-prevnext"><a class="docs-prev button" href="/docs/zh-CN/functions-quickstart"><span class="arrow-prev">← </span><span>Getting started</span></a><a class="docs-next button" href="/docs/zh-CN/functions-deploying"><span>Deploying functions</span><span class="arrow-next"> →</span></a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a href="#核心编程模型">核心编程模型</a><ul class="toc-headings"><li><a href="#example-function">Example fu [...]
+</span></div></article></div><div class="docs-prevnext"><a class="docs-prev button" href="/docs/zh-CN/functions-quickstart"><span class="arrow-prev">← </span><span>Getting started</span></a><a class="docs-next button" href="/docs/zh-CN/functions-deploying"><span>Deploying functions</span><span class="arrow-next"> →</span></a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a href="#核心编程模型">核心编程模型</a><ul class="toc-headings"><li><a href="#示例函数">示例函数</a></li><li><a hr [...]
const community = document.querySelector("a[href='#community']").parentNode;
const communityMenu =
'<li>' +
diff --git a/content/docs/zh-CN/next/client-libraries-cpp.html b/content/docs/zh-CN/next/client-libraries-cpp.html
index 0a3aa04..c2af352 100644
--- a/content/docs/zh-CN/next/client-libraries-cpp.html
+++ b/content/docs/zh-CN/next/client-libraries-cpp.html
@@ -60,9 +60,9 @@
<tr><th>链接</th><th>加密文件</th></tr>
</thead>
<tbody>
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.sha512">sha512</a> [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debug [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_6 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.sha512">sha5 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-d [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1 [...]
</tbody>
</table>
<p>To install a RPM package, download the RPM packages and install them using the following command:</p>
diff --git a/content/docs/zh-CN/next/client-libraries-cpp/index.html b/content/docs/zh-CN/next/client-libraries-cpp/index.html
index 0a3aa04..c2af352 100644
--- a/content/docs/zh-CN/next/client-libraries-cpp/index.html
+++ b/content/docs/zh-CN/next/client-libraries-cpp/index.html
@@ -60,9 +60,9 @@
<tr><th>链接</th><th>加密文件</th></tr>
</thead>
<tbody>
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0.x86_64.rpm.sha512">sha512</a> [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debug [...]
-<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0.x86_6 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm">client</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-2.2.0-1.x86_64.rpm.sha512">sha5 [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm">client-debuginfo</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-debuginfo-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-d [...]
+<tr><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm">client-devel</a></td><td><a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1.x86_64.rpm.asc">asc</a>, <a href="https://www.apache.org/dyn/mirrors/mirrors.cgi?action=download&filename=pulsar/pulsar-2.2.0/RPMS/apache-pulsar-client-devel-2.2.0-1 [...]
</tbody>
</table>
<p>To install a RPM package, download the RPM packages and install them using the following command:</p>
diff --git a/content/docs/zh-CN/next/cookbooks-partitioned.html b/content/docs/zh-CN/next/cookbooks-partitioned.html
index fa43d9f..efef2f0 100644
--- a/content/docs/zh-CN/next/cookbooks-partitioned.html
+++ b/content/docs/zh-CN/next/cookbooks-partitioned.html
@@ -64,10 +64,11 @@
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRoutingMode(ProducerConfiguration.MessageRoutingMode.SinglePartition);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRoutingMode(MessageRoutingMode.SinglePartition)
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h4><a class="anchor" aria-hidden="true" id="custom-message-router"></a><a href="#custom-message-router" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2 [...]
@@ -88,10 +89,11 @@ producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBy
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-cluster-my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRouter(AlwaysTenRouter);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRouter(<span class="hljs-keyword">new</span> AlwaysTenRouter())
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h2><a class="anchor" aria-hidden="true" id="managing-partitioned-topics"></a><a href="#managing-partitioned-topics" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 1 [...]
diff --git a/content/docs/zh-CN/next/cookbooks-partitioned/index.html b/content/docs/zh-CN/next/cookbooks-partitioned/index.html
index fa43d9f..efef2f0 100644
--- a/content/docs/zh-CN/next/cookbooks-partitioned/index.html
+++ b/content/docs/zh-CN/next/cookbooks-partitioned/index.html
@@ -64,10 +64,11 @@
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRoutingMode(ProducerConfiguration.MessageRoutingMode.SinglePartition);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRoutingMode(MessageRoutingMode.SinglePartition)
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h4><a class="anchor" aria-hidden="true" id="custom-message-router"></a><a href="#custom-message-router" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2 [...]
@@ -88,10 +89,11 @@ producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBy
<pre><code class="hljs css language-java">String pulsarBrokerRootUrl = <span class="hljs-string">"pulsar://localhost:6650"</span>;
String topic = <span class="hljs-string">"persistent://my-tenant/my-cluster-my-namespace/my-topic"</span>;
-PulsarClient client = PulsarClient.create(pulsarBrokerRootUrl);
-ProducerConfiguration config = <span class="hljs-keyword">new</span> ProducerConfiguration();
-config.setMessageRouter(AlwaysTenRouter);
-Producer producer = client.createProducer(topic, config);
+PulsarClient pulsarClient = PulsarClient.builder().serviceUrl(pulsarBrokerRootUrl).build();
+Producer<<span class="hljs-keyword">byte</span>[]> producer = pulsarClient.newProducer()
+ .topic(topic)
+ .messageRouter(<span class="hljs-keyword">new</span> AlwaysTenRouter())
+ .create();
producer.send(<span class="hljs-string">"Partitioned topic message"</span>.getBytes());
</code></pre>
<h2><a class="anchor" aria-hidden="true" id="managing-partitioned-topics"></a><a href="#managing-partitioned-topics" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 1 [...]
diff --git a/content/docs/zh-CN/next/functions-api.html b/content/docs/zh-CN/next/functions-api.html
index 4935773..e64d100 100644
--- a/content/docs/zh-CN/next/functions-api.html
+++ b/content/docs/zh-CN/next/functions-api.html
@@ -1,5 +1,5 @@
-<!DOCTYPE html><html lang="zh-CN"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>The Pulsar Functions API · Apache Pulsar</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="<p><a href="/docs/zh-CN/next/functions-overview">Pulsar Functions</a> provides an easy-to-use API that developers can use to create and manage processing logic f [...]
-"/><meta name="docsearch:version" content="next"/><meta name="docsearch:language" content="zh-CN"/><meta property="og:title" content="The Pulsar Functions API · Apache Pulsar"/><meta property="og:type" content="website"/><meta property="og:url" content="https://pulsar.incubator.apache.org/index.html"/><meta property="og:description" content="<p><a href="/docs/zh-CN/next/functions-overview">Pulsar Functions</a> provides an easy-to-use API that developers can us [...]
+<!DOCTYPE html><html lang="zh-CN"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>The Pulsar Functions API · Apache Pulsar</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="<p><a href="/docs/zh-CN/next/functions-overview">Pulsar Functions</a>提供了简便易行的API,开发人员可以利用这些API来给Apache Pulsar消息处理系统创建和管理处理逻辑。 通过使用Pulsar Functions,你可以编写任何复杂程度的&l [...]
+"/><meta name="docsearch:version" content="next"/><meta name="docsearch:language" content="zh-CN"/><meta property="og:title" content="The Pulsar Functions API · Apache Pulsar"/><meta property="og:type" content="website"/><meta property="og:url" content="https://pulsar.incubator.apache.org/index.html"/><meta property="og:description" content="<p><a href="/docs/zh-CN/next/functions-overview">Pulsar Functions</a>提供了简便易行的API,开发人员可以利用这些API来给Apache Pulsar消息处理系统创建和管理 [...]
"/><meta name="twitter:card" content="summary"/><meta name="twitter:image" content="https://pulsar.incubator.apache.org/img/pulsar.svg"/><link rel="shortcut icon" href="/img/pulsar.ico"/><link rel="stylesheet" href="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.css"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/atom-one-dark.min.css"/><link rel="alternate" type="application/atom+xml" href="https://pulsar.incubator.apache.org/blog/atom.x [...]
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
@@ -47,35 +47,35 @@
};
}
});
- </script></nav></div><div class="container mainContainer"><div class="wrapper"><div class="post"><header class="postHeader"><a class="edit-page-link button" href="https://crowdin.com/project/apache-pulsar/zh-CN" target="_blank" rel="noreferrer noopener">Translate</a><h1 class="postHeaderTitle">The Pulsar Functions API</h1></header><article><div><span><p><a href="/docs/zh-CN/next/functions-overview">Pulsar Functions</a> provides an easy-to-use API that developers can use to create [...]
+ </script></nav></div><div class="container mainContainer"><div class="wrapper"><div class="post"><header class="postHeader"><a class="edit-page-link button" href="https://crowdin.com/project/apache-pulsar/zh-CN" target="_blank" rel="noreferrer noopener">Translate</a><h1 class="postHeaderTitle">The Pulsar Functions API</h1></header><article><div><span><p><a href="/docs/zh-CN/next/functions-overview">Pulsar Functions</a>提供了简便易行的API,开发人员可以利用这些API来给Apache Pulsar消息处理系统创建和管理处理逻辑。 通过使用P [...]
<blockquote>
-<p>For a more in-depth overview of the Pulsar Functions feature, see the <a href="/docs/zh-CN/next/functions-overview">Pulsar Functions overview</a>.</p>
+<p>更多关于Pulsar Functions功能介绍,请参见<a href="/docs/zh-CN/next/functions-overview">Pulsar Functions overview</a>。</p>
</blockquote>
<h2><a class="anchor" aria-hidden="true" id="核心编程模型"></a><a href="#核心编程模型" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2. [...]
-<p>Pulsar Functions provide a wide range of functionality but are based on a very simple programming model. You can think of Pulsar Functions as lightweight processes that</p>
+<p>Pulsar Functions提供了十分丰富的功能,但都是简单的编程示例。 你可以将Pulsar Functions当作轻量级的程序。</p>
<ul>
-<li>consume messages from one or more Pulsar topics and then</li>
-<li>apply some user-defined processing logic to each incoming message. That processing logic could be just about anything you want, including
+<li>首先,消费来自一个或多个Pulsar主题的消息;</li>
+<li>然后依照一系列自定义的处理逻辑对流入的每一条消息进行处理。处理逻辑完全可以由你设计,包括:
<ul>
-<li>producing the resulting, processed message on another Pulsar topic, or</li>
-<li>doing something else with the message, such as writing results to an external database.</li>
+<li>在另一个Pulsar主题上产生生成的,已处理的消息</li>
+<li>或者对消息做一些诸如写入数据库之类的操作。</li>
</ul></li>
</ul>
-<p>You could use Pulsar Functions, for example, to set up the following processing chain:</p>
+<p>例如,你可以使用Pulsar Functions做如下的一系列操作:</p>
<ul>
-<li>A <a href="#functions-for-python">Python</a> function listens on the <code>raw-sentences</code> topic and "<a href="#example-function">sanitizes</a>" incoming strings (removing extraneous whitespace and converting all characters to lower case) and then publishes the results to a <code>sanitized-sentences</code> topic</li>
-<li>A <a href="#functions-for-java">Java</a> function listens on the <code>sanitized-sentences</code> topic, counts the number of times each word appears within a specified time window, and publishes the results to a <code>results</code> topic</li>
-<li>Finally, a Python function listens on the <code>results</code> topic and writes the results to a MySQL table</li>
+<li>一个监听<code>raw_sentences</code>主题,并对输入的字符串 "<a href="#example-function">清洗</a>" 的<a href="#functions-for-python">Python</a>函数(删除无关的空格并将所有字符转换为小写),之后会把结果发布到<code>sanitized-sentences</code>主题。</li>
+<li>A <a href="#functions-for-java">Java</a> 函数负责监听<code>sanitized-sentences</code> 主题,计算每个单词在指定时间窗口内出现的次数,并将结果发布到<code>results</code> 主题。</li>
+<li>最后,负责监听<code>results</code>主题的一个Python函数将结果写入MySQL数据表。</li>
</ul>
-<h3><a class="anchor" aria-hidden="true" id="example-function"></a><a href="#example-function" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2. [...]
-<p>Here's an example "input sanitizer" function written in Python and stored in a <code>sanitizer.py</code> file:</p>
+<h3><a class="anchor" aria-hidden="true" id="示例函数"></a><a href="#示例函数" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6 [...]
+<p>这儿有一个用Python语言实现的 "input sanitizer" 示例函数,它被存放在<code>sanitizer.py</code>文件里:</p>
<pre><code class="hljs css language-python"><span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">clean_string</span><span class="hljs-params">(s)</span>:</span>
<span class="hljs-keyword">return</span> s.strip().lower()
<span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">process</span><span class="hljs-params">(input)</span>:</span>
<span class="hljs-keyword">return</span> clean_string(input)
</code></pre>
-<p>Some things to note about this Pulsar Function:</p>
+<p>关于Pulsar Function的一些注意事项:</p>
<ul>
<li>There is no client, producer, or consumer object involved. All message "plumbing" is already taken care of for you, enabling you to worry only about processing logic.</li>
<li>No topics, subscription types, tenants, or namespaces are specified in the function logic itself. Instead, topics are specified upon <a href="#example-deployment">deployment</a>. This means that you can use and re-use Pulsar Functions across topics, tenants, and namespaces without needing to hard-code those attributes.</li>
@@ -640,7 +640,7 @@ String wotd = context.getUserConfigValueOrDefault(<span class="hljs-string">"wor
<span class="hljs-keyword">if</span> input == <span class="hljs-number">11</span>:
context.record_metric(<span class="hljs-string">'elevens-count'</span>, <span class="hljs-number">1</span>)
</code></pre>
-</span></div></article></div><div class="docs-prevnext"><a class="docs-prev button" href="/docs/zh-CN/next/functions-quickstart"><span class="arrow-prev">← </span><span>Getting started</span></a><a class="docs-next button" href="/docs/zh-CN/next/functions-deploying"><span>Deploying functions</span><span class="arrow-next"> →</span></a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a href="#核心编程模型">核心编程模型</a><ul class="toc-headings"><li><a href="#example-function"> [...]
+</span></div></article></div><div class="docs-prevnext"><a class="docs-prev button" href="/docs/zh-CN/next/functions-quickstart"><span class="arrow-prev">← </span><span>Getting started</span></a><a class="docs-next button" href="/docs/zh-CN/next/functions-deploying"><span>Deploying functions</span><span class="arrow-next"> →</span></a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a href="#核心编程模型">核心编程模型</a><ul class="toc-headings"><li><a href="#示例函数">示例函数</a></li [...]
const community = document.querySelector("a[href='#community']").parentNode;
const communityMenu =
'<li>' +
diff --git a/content/docs/zh-CN/next/functions-api/index.html b/content/docs/zh-CN/next/functions-api/index.html
index 4935773..e64d100 100644
--- a/content/docs/zh-CN/next/functions-api/index.html
+++ b/content/docs/zh-CN/next/functions-api/index.html
@@ -1,5 +1,5 @@
-<!DOCTYPE html><html lang="zh-CN"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>The Pulsar Functions API · Apache Pulsar</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="<p><a href="/docs/zh-CN/next/functions-overview">Pulsar Functions</a> provides an easy-to-use API that developers can use to create and manage processing logic f [...]
-"/><meta name="docsearch:version" content="next"/><meta name="docsearch:language" content="zh-CN"/><meta property="og:title" content="The Pulsar Functions API · Apache Pulsar"/><meta property="og:type" content="website"/><meta property="og:url" content="https://pulsar.incubator.apache.org/index.html"/><meta property="og:description" content="<p><a href="/docs/zh-CN/next/functions-overview">Pulsar Functions</a> provides an easy-to-use API that developers can us [...]
+<!DOCTYPE html><html lang="zh-CN"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>The Pulsar Functions API · Apache Pulsar</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="<p><a href="/docs/zh-CN/next/functions-overview">Pulsar Functions</a>提供了简便易行的API,开发人员可以利用这些API来给Apache Pulsar消息处理系统创建和管理处理逻辑。 通过使用Pulsar Functions,你可以编写任何复杂程度的&l [...]
+"/><meta name="docsearch:version" content="next"/><meta name="docsearch:language" content="zh-CN"/><meta property="og:title" content="The Pulsar Functions API · Apache Pulsar"/><meta property="og:type" content="website"/><meta property="og:url" content="https://pulsar.incubator.apache.org/index.html"/><meta property="og:description" content="<p><a href="/docs/zh-CN/next/functions-overview">Pulsar Functions</a>提供了简便易行的API,开发人员可以利用这些API来给Apache Pulsar消息处理系统创建和管理 [...]
"/><meta name="twitter:card" content="summary"/><meta name="twitter:image" content="https://pulsar.incubator.apache.org/img/pulsar.svg"/><link rel="shortcut icon" href="/img/pulsar.ico"/><link rel="stylesheet" href="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.css"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/atom-one-dark.min.css"/><link rel="alternate" type="application/atom+xml" href="https://pulsar.incubator.apache.org/blog/atom.x [...]
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
@@ -47,35 +47,35 @@
};
}
});
- </script></nav></div><div class="container mainContainer"><div class="wrapper"><div class="post"><header class="postHeader"><a class="edit-page-link button" href="https://crowdin.com/project/apache-pulsar/zh-CN" target="_blank" rel="noreferrer noopener">Translate</a><h1 class="postHeaderTitle">The Pulsar Functions API</h1></header><article><div><span><p><a href="/docs/zh-CN/next/functions-overview">Pulsar Functions</a> provides an easy-to-use API that developers can use to create [...]
+ </script></nav></div><div class="container mainContainer"><div class="wrapper"><div class="post"><header class="postHeader"><a class="edit-page-link button" href="https://crowdin.com/project/apache-pulsar/zh-CN" target="_blank" rel="noreferrer noopener">Translate</a><h1 class="postHeaderTitle">The Pulsar Functions API</h1></header><article><div><span><p><a href="/docs/zh-CN/next/functions-overview">Pulsar Functions</a>提供了简便易行的API,开发人员可以利用这些API来给Apache Pulsar消息处理系统创建和管理处理逻辑。 通过使用P [...]
<blockquote>
-<p>For a more in-depth overview of the Pulsar Functions feature, see the <a href="/docs/zh-CN/next/functions-overview">Pulsar Functions overview</a>.</p>
+<p>更多关于Pulsar Functions功能介绍,请参见<a href="/docs/zh-CN/next/functions-overview">Pulsar Functions overview</a>。</p>
</blockquote>
<h2><a class="anchor" aria-hidden="true" id="核心编程模型"></a><a href="#核心编程模型" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2. [...]
-<p>Pulsar Functions provide a wide range of functionality but are based on a very simple programming model. You can think of Pulsar Functions as lightweight processes that</p>
+<p>Pulsar Functions提供了十分丰富的功能,但都是简单的编程示例。 你可以将Pulsar Functions当作轻量级的程序。</p>
<ul>
-<li>consume messages from one or more Pulsar topics and then</li>
-<li>apply some user-defined processing logic to each incoming message. That processing logic could be just about anything you want, including
+<li>首先,消费来自一个或多个Pulsar主题的消息;</li>
+<li>然后依照一系列自定义的处理逻辑对流入的每一条消息进行处理。处理逻辑完全可以由你设计,包括:
<ul>
-<li>producing the resulting, processed message on another Pulsar topic, or</li>
-<li>doing something else with the message, such as writing results to an external database.</li>
+<li>在另一个Pulsar主题上产生生成的,已处理的消息</li>
+<li>或者对消息做一些诸如写入数据库之类的操作。</li>
</ul></li>
</ul>
-<p>You could use Pulsar Functions, for example, to set up the following processing chain:</p>
+<p>例如,你可以使用Pulsar Functions做如下的一系列操作:</p>
<ul>
-<li>A <a href="#functions-for-python">Python</a> function listens on the <code>raw-sentences</code> topic and "<a href="#example-function">sanitizes</a>" incoming strings (removing extraneous whitespace and converting all characters to lower case) and then publishes the results to a <code>sanitized-sentences</code> topic</li>
-<li>A <a href="#functions-for-java">Java</a> function listens on the <code>sanitized-sentences</code> topic, counts the number of times each word appears within a specified time window, and publishes the results to a <code>results</code> topic</li>
-<li>Finally, a Python function listens on the <code>results</code> topic and writes the results to a MySQL table</li>
+<li>一个监听<code>raw_sentences</code>主题,并对输入的字符串 "<a href="#example-function">清洗</a>" 的<a href="#functions-for-python">Python</a>函数(删除无关的空格并将所有字符转换为小写),之后会把结果发布到<code>sanitized-sentences</code>主题。</li>
+<li>A <a href="#functions-for-java">Java</a> 函数负责监听<code>sanitized-sentences</code> 主题,计算每个单词在指定时间窗口内出现的次数,并将结果发布到<code>results</code> 主题。</li>
+<li>最后,负责监听<code>results</code>主题的一个Python函数将结果写入MySQL数据表。</li>
</ul>
-<h3><a class="anchor" aria-hidden="true" id="example-function"></a><a href="#example-function" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2. [...]
-<p>Here's an example "input sanitizer" function written in Python and stored in a <code>sanitizer.py</code> file:</p>
+<h3><a class="anchor" aria-hidden="true" id="示例函数"></a><a href="#示例函数" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6 [...]
+<p>这儿有一个用Python语言实现的 "input sanitizer" 示例函数,它被存放在<code>sanitizer.py</code>文件里:</p>
<pre><code class="hljs css language-python"><span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">clean_string</span><span class="hljs-params">(s)</span>:</span>
<span class="hljs-keyword">return</span> s.strip().lower()
<span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">process</span><span class="hljs-params">(input)</span>:</span>
<span class="hljs-keyword">return</span> clean_string(input)
</code></pre>
-<p>Some things to note about this Pulsar Function:</p>
+<p>关于Pulsar Function的一些注意事项:</p>
<ul>
<li>There is no client, producer, or consumer object involved. All message "plumbing" is already taken care of for you, enabling you to worry only about processing logic.</li>
<li>No topics, subscription types, tenants, or namespaces are specified in the function logic itself. Instead, topics are specified upon <a href="#example-deployment">deployment</a>. This means that you can use and re-use Pulsar Functions across topics, tenants, and namespaces without needing to hard-code those attributes.</li>
@@ -640,7 +640,7 @@ String wotd = context.getUserConfigValueOrDefault(<span class="hljs-string">"wor
<span class="hljs-keyword">if</span> input == <span class="hljs-number">11</span>:
context.record_metric(<span class="hljs-string">'elevens-count'</span>, <span class="hljs-number">1</span>)
</code></pre>
-</span></div></article></div><div class="docs-prevnext"><a class="docs-prev button" href="/docs/zh-CN/next/functions-quickstart"><span class="arrow-prev">← </span><span>Getting started</span></a><a class="docs-next button" href="/docs/zh-CN/next/functions-deploying"><span>Deploying functions</span><span class="arrow-next"> →</span></a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a href="#核心编程模型">核心编程模型</a><ul class="toc-headings"><li><a href="#example-function"> [...]
+</span></div></article></div><div class="docs-prevnext"><a class="docs-prev button" href="/docs/zh-CN/next/functions-quickstart"><span class="arrow-prev">← </span><span>Getting started</span></a><a class="docs-next button" href="/docs/zh-CN/next/functions-deploying"><span>Deploying functions</span><span class="arrow-next"> →</span></a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a href="#核心编程模型">核心编程模型</a><ul class="toc-headings"><li><a href="#示例函数">示例函数</a></li [...]
const community = document.querySelector("a[href='#community']").parentNode;
const communityMenu =
'<li>' +
diff --git a/content/swagger/swagger.json b/content/swagger/swagger.json
index 30ed71e..c83fe3e 100644
--- a/content/swagger/swagger.json
+++ b/content/swagger/swagger.json
@@ -6891,6 +6891,13 @@
"loadReportType" : {
"type" : "string"
},
+ "msgThroughputIn" : {
+ "type" : "number",
+ "format" : "double"
+ },
+ "cpu" : {
+ "$ref" : "#/definitions/ResourceUsage"
+ },
"memory" : {
"$ref" : "#/definitions/ResourceUsage"
},
@@ -6907,16 +6914,9 @@
"type" : "integer",
"format" : "int64"
},
- "msgThroughputIn" : {
- "type" : "number",
- "format" : "double"
- },
"msgThroughputOut" : {
"type" : "number",
"format" : "double"
- },
- "cpu" : {
- "$ref" : "#/definitions/ResourceUsage"
}
}
},