CAMEL-11584: Add javadoc to spring boot auto configuration of 
camel.supervising.controller


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/29a3b28b
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/29a3b28b
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/29a3b28b

Branch: refs/heads/master
Commit: 29a3b28b0c7b4a3caeb78c14d75d5f0393aa191b
Parents: b354cba
Author: lburgazzoli <lburgazz...@gmail.com>
Authored: Mon Aug 7 08:15:10 2017 +0200
Committer: lburgazzoli <lburgazz...@gmail.com>
Committed: Tue Aug 8 13:29:27 2017 +0200

----------------------------------------------------------------------
 ...SupervisingRouteControllerConfiguration.java | 42 ++++++++++++++++++++
 1 file changed, 42 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/29a3b28b/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/SupervisingRouteControllerConfiguration.java
----------------------------------------------------------------------
diff --git 
a/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/SupervisingRouteControllerConfiguration.java
 
b/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/SupervisingRouteControllerConfiguration.java
index 01c2d0e..32ef447 100644
--- 
a/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/SupervisingRouteControllerConfiguration.java
+++ 
b/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/SupervisingRouteControllerConfiguration.java
@@ -23,8 +23,19 @@ import 
org.springframework.boot.context.properties.ConfigurationProperties;
 
 @ConfigurationProperties(prefix = "camel.supervising.controller")
 public class SupervisingRouteControllerConfiguration {
+    /**
+     * Global option to enable/disable this ${@link 
org.apache.camel.spi.RouteController}, default is false.
+     */
     private boolean enabled;
+
+    /**
+     * The default back-off configuration, back-off configuration for routes 
inherits from this default.
+     */
     private BackOffConfiguration backOff = new BackOffConfiguration();
+
+    /**
+     * Routes configuration.
+     */
     private Map<String, RouteConfiguration> routes = new HashMap<>();
 
     public boolean isEnabled() {
@@ -48,6 +59,9 @@ public class SupervisingRouteControllerConfiguration {
     // *****************************************
 
     public static class RouteConfiguration {
+        /**
+         * The back-off configuration from this route, inherits from default 
back-off
+         */
         private BackOffConfiguration backOff;
 
         public BackOffConfiguration getBackOff() {
@@ -60,10 +74,38 @@ public class SupervisingRouteControllerConfiguration {
     }
 
     public static class BackOffConfiguration {
+        /**
+         * The delay to wait before retry the operation.
+         *
+         * You can also specify time values using units, such as 60s (60 
seconds),
+         * 5m30s (5 minutes and 30 seconds), and 1h (1 hour).
+         */
         private String delay;
+
+        /**
+         * The maximum back-off time.
+         *
+         * You can also specify time values using units, such as 60s (60 
seconds),
+         * 5m30s (5 minutes and 30 seconds), and 1h (1 hour).
+         */
         private String maxDelay;
+
+        /**
+         * The maximum elapsed time after which the back-off is exhausted.
+         *
+         * You can also specify time values using units, such as 60s (60 
seconds),
+         * 5m30s (5 minutes and 30 seconds), and 1h (1 hour).
+         */
         private String maxElapsedTime;
+
+        /**
+         * Teh maximum number of attempts after which the back-off is 
exhausted.
+         */
         private Long maxAttempts;
+
+        /**
+         * The value to multiply the current interval by for each retry 
attempt.
+         */
         private Double multiplier;
 
         public String getDelay() {

Reply via email to