Class RawConfigSubscription<T extends com.yahoo.config.ConfigInstance>

java.lang.Object
com.yahoo.config.subscription.impl.ConfigSubscription<T>
com.yahoo.config.subscription.impl.RawConfigSubscription<T>

public class RawConfigSubscription<T extends com.yahoo.config.ConfigInstance> extends ConfigSubscription<T>
Subscription used when config id is raw:...

Config is the actual text given after the config id, with newlines

Author:
Vegard Havdal
  • Method Details

    • nextConfig

      public boolean nextConfig(long timeout)
      Description copied from class: ConfigSubscription
      Polls this subscription for a change. The method is guaranteed to use all of the given timeout before returning false. It will also take into account a user-set generation, that can be set by ConfigSubscriber.reload(long).
      Specified by:
      nextConfig in class ConfigSubscription<T extends com.yahoo.config.ConfigInstance>
      Parameters:
      timeout - in milliseconds
      Returns:
      false if timed out, true if generation or config or ConfigSubscription.exception changed. If true, the ConfigSubscription.config field will be set also. has changed
    • subscribe

      public boolean subscribe(long timeout)
      Description copied from class: ConfigSubscription
      Will block until the next ConfigSubscription.nextConfig(long) is guaranteed to return an answer (or throw) immediately (i.e. not block)
      Specified by:
      subscribe in class ConfigSubscription<T extends com.yahoo.config.ConfigInstance>
      Parameters:
      timeout - in milliseconds
      Returns:
      false if timed out