You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2022/06/28 16:00:31 UTC

[camel] branch main updated: CAMEL-18128: added a few details about configuring the builtin strategies

This is an automated email from the ASF dual-hosted git repository.

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 43a54a7c3f1 CAMEL-18128: added a few details about configuring the builtin strategies
43a54a7c3f1 is described below

commit 43a54a7c3f1b0d8c04dfda2a46c150a2197bc2b8
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Tue Jun 28 15:52:09 2022 +0200

    CAMEL-18128: added a few details about configuring the builtin strategies
---
 .../src/main/docs/modules/eips/pages/resume-strategies.adoc | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/core/camel-core-engine/src/main/docs/modules/eips/pages/resume-strategies.adoc b/core/camel-core-engine/src/main/docs/modules/eips/pages/resume-strategies.adoc
index 1cd95bdcfb5..e45a0f898d5 100644
--- a/core/camel-core-engine/src/main/docs/modules/eips/pages/resume-strategies.adoc
+++ b/core/camel-core-engine/src/main/docs/modules/eips/pages/resume-strategies.adoc
@@ -77,6 +77,19 @@ Camel comes with a few builtin strategies that can be used to store, retrieve an
 * `SingleNodeKafkaResumeStrategy` - a resume strategy from the `camel-kafka` component that uses Kafka as the store for the offsets and is suitable for single node integrations.
 * `MultiNodeKafkaResumeStrategy` - a resume strategy from the `camel-kafka` component that uses Kafka as the store for the offsets and is suitable for multi node integrations (i.e.: integrations running on clusters using the xref:components::master-component.adoc[camel-master] component.
 
+=== Configuring the Strategies
+
+Some of the builtin strategies may need additional configuration. This can be done using the configuration builders
+available for each strategy. For instance, to configure either one of the Kafka strategies mentioned earlier, the
+`KafkaResumeStrategyConfiguration` needs to be used. It can be created using a code similar to the following:
+
+[source,java]
+----
+    KafkaResumeStrategyConfiguration resumeStrategyConfiguration = KafkaResumeStrategyConfigurationBuilder.newBuilder()
+            .withBootstrapServers(bootStrapAddress)
+            .withTopic(kafkaTopic)
+            .build();
+----
 
 === Implementing New Builtin Resume Strategies