Repository: camel Updated Branches: refs/heads/master f8e590c67 -> 3bb4b5a49
Component docs - Fixed Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/46cbdbd5 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/46cbdbd5 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/46cbdbd5 Branch: refs/heads/master Commit: 46cbdbd5d8564c800457c4fc97bde7fad377c397 Parents: f8e590c Author: Claus Ibsen <davscl...@apache.org> Authored: Thu Apr 13 10:14:32 2017 +0200 Committer: Claus Ibsen <davscl...@apache.org> Committed: Thu Apr 13 10:14:32 2017 +0200 ---------------------------------------------------------------------- .../src/main/docs/ribbon-component.adoc | 79 -------------------- .../camel-ribbon/src/main/docs/ribbon.adoc | 79 ++++++++++++++++++++ 2 files changed, 79 insertions(+), 79 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/46cbdbd5/components/camel-ribbon/src/main/docs/ribbon-component.adoc ---------------------------------------------------------------------- diff --git a/components/camel-ribbon/src/main/docs/ribbon-component.adoc b/components/camel-ribbon/src/main/docs/ribbon-component.adoc deleted file mode 100644 index c4b968d..0000000 --- a/components/camel-ribbon/src/main/docs/ribbon-component.adoc +++ /dev/null @@ -1,79 +0,0 @@ -## Ribbon Component - -*Available as of Camel version 2.18* - -The ribbon component provides use of Netflix Ribbon for client side load balancing. - -Maven users will need to add the following dependency to their `pom.xml` -for this component: - -[source,xml] ----- -<dependency> - <groupId>org.apache.camel</groupId> - <artifactId>camel-ribbon</artifactId> - <version>x.x.x</version> - <!-- use the same version as your Camel core version --> -</dependency> ----- - -This component helps applying load balancing feature at the client side when using http://camel.apache.org/servicecall-eip.html[ServiceCall EIP]. - -#### Configuration - -* *Programmatic* -+ -[source,java] ----- -RibbonConfiguration configuration = new RibbonConfiguration(); -configuration.setClientConfig(Collections.singletonMap("ServerListRefreshInterval", "250")); - -RibbonLoadBalancer loadBalancer = new RibbonLoadBalancer(configuration); - -from("direct:start") - .serviceCall() - .name("myService") - .loadBalancer(loadBalancer) - .consulServiceDiscovery() - .end() - .to("mock:result"); ----- - -* *Spring Boot* -+ -[source,properties] -.application.properties ----- -camel.cloud.ribbon.client-config[ServerListRefreshInterval] = 250 ----- -+ -[source,java] -.routes ----- -from("direct:start") - .serviceCall() - .name("myService") - .ribbonLoadBalancer() - .consulServiceDiscovery() - .end() - .to("mock:result"); ----- - -* *XML* -+ -[source,xml] ----- -<route> - <from uri="direct:start"/> - <serviceCall name="myService"> - <!-- enable ribbon load balancer --> - <ribbonLoadBalancer> - <properties key="ServerListRefreshInterval" value="250"/> - </ribbonLoadBalancer> - </serviceCall> -</route> ----- - -#### See Also - -* link:http://camel.apache.org/servicecall-eip.html[ServiceCall EIP] http://git-wip-us.apache.org/repos/asf/camel/blob/46cbdbd5/components/camel-ribbon/src/main/docs/ribbon.adoc ---------------------------------------------------------------------- diff --git a/components/camel-ribbon/src/main/docs/ribbon.adoc b/components/camel-ribbon/src/main/docs/ribbon.adoc new file mode 100644 index 0000000..ceb2e0e --- /dev/null +++ b/components/camel-ribbon/src/main/docs/ribbon.adoc @@ -0,0 +1,79 @@ +## Ribbon Component + +*Available as of Camel version 2.18* + +The ribbon component provides use of Netflix Ribbon for client side load balancing. + +Maven users will need to add the following dependency to their `pom.xml` +for this component: + +[source,xml] +---- +<dependency> + <groupId>org.apache.camel</groupId> + <artifactId>camel-ribbon</artifactId> + <version>x.x.x</version> + <!-- use the same version as your Camel core version --> +</dependency> +---- + +This component helps applying load balancing feature at the client side when using http://camel.apache.org/servicecall-eip.html[ServiceCall EIP]. + +### Configuration + +* *Programmatic* ++ +[source,java] +---- +RibbonConfiguration configuration = new RibbonConfiguration(); +configuration.setClientConfig(Collections.singletonMap("ServerListRefreshInterval", "250")); + +RibbonLoadBalancer loadBalancer = new RibbonLoadBalancer(configuration); + +from("direct:start") + .serviceCall() + .name("myService") + .loadBalancer(loadBalancer) + .consulServiceDiscovery() + .end() + .to("mock:result"); +---- + +* *Spring Boot* ++ +[source,properties] +.application.properties +---- +camel.cloud.ribbon.client-config[ServerListRefreshInterval] = 250 +---- ++ +[source,java] +.routes +---- +from("direct:start") + .serviceCall() + .name("myService") + .ribbonLoadBalancer() + .consulServiceDiscovery() + .end() + .to("mock:result"); +---- + +* *XML* ++ +[source,xml] +---- +<route> + <from uri="direct:start"/> + <serviceCall name="myService"> + <!-- enable ribbon load balancer --> + <ribbonLoadBalancer> + <properties key="ServerListRefreshInterval" value="250"/> + </ribbonLoadBalancer> + </serviceCall> +</route> +---- + +### See Also + +* link:http://camel.apache.org/servicecall-eip.html[ServiceCall EIP]