From d454e42ac9de3d7fd5036786b7b3249c298575bc Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Fri, 11 Jul 2014 17:25:43 +0100 Subject: [PATCH] Add enabled flag --- pom.xml | 27 +++++++++++++++++-- .../eureka/EurekaClientConfigBean.java | 2 ++ 2 files changed, 27 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 7747a5b2..2e53e736 100644 --- a/pom.xml +++ b/pom.xml @@ -16,6 +16,26 @@ 1.1.5.BUILD-SNAPSHOT + + + + + com.netflix.eureka + eureka-client + 1.1.135 + + + com.netflix.eureka + eureka-client + 1.1.135 + + + org.projectlombok + lombok + 1.12.6 + + + @@ -29,12 +49,15 @@ com.netflix.eureka eureka-client - 1.1.135 + + + com.netflix.eureka + eureka-client + true org.projectlombok lombok - 1.12.6 org.springframework.boot diff --git a/src/main/java/org/springframework/platform/netflix/eureka/EurekaClientConfigBean.java b/src/main/java/org/springframework/platform/netflix/eureka/EurekaClientConfigBean.java index ab35f4b6..09bf489a 100644 --- a/src/main/java/org/springframework/platform/netflix/eureka/EurekaClientConfigBean.java +++ b/src/main/java/org/springframework/platform/netflix/eureka/EurekaClientConfigBean.java @@ -38,6 +38,8 @@ public class EurekaClientConfigBean implements EurekaClientConfig { public static final String DEFAULT_ZONE = "defaultZone"; private static final int MINUTES = 60; + + private boolean enabled = true; private int registryFetchIntervalSeconds = 30;