diff options
author | Jon Bratseth <bratseth@gmail.com> | 2022-06-03 13:34:05 +0200 |
---|---|---|
committer | gjoranv <gv@verizonmedia.com> | 2022-06-08 11:45:26 +0200 |
commit | 4f5225f4e62286f329af54c4ed1c465826d6189a (patch) | |
tree | 037ad4e33e61959ee42003cdd0db4d6c0e131208 /config/src | |
parent | beebdd3bc2061f6687736a78d288027650772807 (diff) |
Remove on Vespa 8
Diffstat (limited to 'config/src')
-rw-r--r-- | config/src/main/java/com/yahoo/config/subscription/ConfigSubscriber.java | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/config/src/main/java/com/yahoo/config/subscription/ConfigSubscriber.java b/config/src/main/java/com/yahoo/config/subscription/ConfigSubscriber.java index 1c516b37783..b71b2bc12fc 100644 --- a/config/src/main/java/com/yahoo/config/subscription/ConfigSubscriber.java +++ b/config/src/main/java/com/yahoo/config/subscription/ConfigSubscriber.java @@ -79,7 +79,7 @@ public class ConfigSubscriber implements AutoCloseable { /** * Subscribes on the given type of {@link ConfigInstance} with the given config id. * - * The method blocks until the first config is ready to be fetched with {@link #nextConfig()}. + * The method blocks until the first config is ready to be fetched with {@link #nextConfig(boolean)}. * * @param configClass The class, typically generated from a def-file using config-class-plugin * @param configId Identifies the service in vespa-services.xml, or null if you are using a local {@link ConfigSource} which does not use config id. @@ -94,7 +94,7 @@ public class ConfigSubscriber implements AutoCloseable { /** * Subscribes on the given type of {@link ConfigInstance} with the given config id and subscribe timeout. * - * The method blocks until the first config is ready to be fetched with {@link #nextConfig()}. + * The method blocks until the first config is ready to be fetched with {@link #nextConfig(boolean)}. * * @param configClass The class, typically generated from a def-file using config-class-plugin * @param configId Identifies the service in vespa-services.xml, or possibly raw:, file:, dir: or jar: type config which addresses config locally. @@ -160,11 +160,6 @@ public class ConfigSubscriber implements AutoCloseable { return nextConfig(TimingValues.defaultNextConfigTimeout, isInitializing); } - @Deprecated // TODO: Remove on Vespa 8 - public boolean nextConfig() { - return nextConfig(false); - } - /** * Use this for waiting for a new config that has changed, with the given timeout. * @@ -462,7 +457,7 @@ public class ConfigSubscriber implements AutoCloseable { ConfigHandle<T> handle = subscribe(configClass, configId); - if ( ! nextConfig()) + if ( ! nextConfig(false)) throw new ConfigurationRuntimeException("Initial config of " + configClass.getName() + " failed"); singleSubscriber.configure(handle.getConfig()); @@ -471,7 +466,7 @@ public class ConfigSubscriber implements AutoCloseable { boolean hasNewConfig = false; try { - hasNewConfig = nextConfig(); + hasNewConfig = nextConfig(false); } catch (Exception e) { log.log(SEVERE, "Exception on receiving config. Ignoring this change.", e); |