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

davsclaus pushed a commit to branch camel-2.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-2.x by this push:
     new 839a4de  CAMEL-13580: camel-zookeeper - Deprecate route master/slave 
policy
839a4de is described below

commit 839a4deabddcf1ec713c0b30c4c697c6d5282300
Author: Claus Ibsen <[email protected]>
AuthorDate: Mon Jun 3 20:48:59 2019 +0200

    CAMEL-13580: camel-zookeeper - Deprecate route master/slave policy
---
 components/camel-zookeeper/src/main/docs/zookeeper-component.adoc      | 3 +++
 .../apache/camel/component/zookeeper/policy/ZooKeeperRoutePolicy.java  | 1 +
 2 files changed, 4 insertions(+)

diff --git a/components/camel-zookeeper/src/main/docs/zookeeper-component.adoc 
b/components/camel-zookeeper/src/main/docs/zookeeper-component.adoc
index d1fcaa1..8f0ccd0 100644
--- a/components/camel-zookeeper/src/main/docs/zookeeper-component.adoc
+++ b/components/camel-zookeeper/src/main/docs/zookeeper-component.adoc
@@ -293,6 +293,9 @@ 
template.sendBodyAndHeader("direct:create-and-write-to-persistent-znode", testPa
 
 ### ZooKeeper enabled Route policies
 
+NOTE: This functionality with route policy is deprecated, instead use 
`ZooKeeperClusterService`
+or the `camel-zookeeper-master` component.
+
 ZooKeeper allows for very simple and effective leader election out of
 the box. This component exploits this election capability in a
 `RoutePolicy` to control when and how routes are
diff --git 
a/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/policy/ZooKeeperRoutePolicy.java
 
b/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/policy/ZooKeeperRoutePolicy.java
index b4bd9ce..18ce3d3 100644
--- 
a/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/policy/ZooKeeperRoutePolicy.java
+++ 
b/components/camel-zookeeper/src/main/java/org/apache/camel/component/zookeeper/policy/ZooKeeperRoutePolicy.java
@@ -49,6 +49,7 @@ import org.apache.camel.support.RoutePolicySupport;
  * See <a 
href="http://hadoop.apache.org/zookeeper/docs/current/recipes.html#sc_leaderElection";>
  *     for more on how Leader election</a> is archived with ZooKeeper.
  */
+@Deprecated
 public class ZooKeeperRoutePolicy extends RoutePolicySupport implements 
ElectionWatcher, NonManagedService {
 
     private final String uri;

Reply via email to