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

  • Type Parameters:
    T - the type of the config
    Direct Known Subclasses:
    GenericConfigHandle

    @Deprecated(forRemoval=true,
                since="7")
    public class ConfigHandle<T extends com.yahoo.config.ConfigInstance>
    extends Object
    Deprecated, for removal: This API element is subject to removal in a future version.
    Will be removed in Vespa 8. Only for internal use.
    A config handle represents one config in the context of one active subscription on a ConfigSubscriber. It will contain meta data of the subscription of that particular config, as well as access to the ConfigInstance itself.
    Author:
    vegardh
    • Constructor Detail

      • ConfigHandle

        protected ConfigHandle​(ConfigSubscription<T> sub)
        Deprecated, for removal: This API element is subject to removal in a future version.
    • Method Detail

      • isChanged

        public boolean isChanged()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns true if: The config generation for the ConfigSubscriber that produced this is the first one in its life cycle. (Typically first time config.) or All configs for the subscriber have a new generation since the last time nextConfig() was called AND it's the same generation AND there is a change in this handle's config. (Typically calls for a reconfig.)
        Returns:
        there is a new config
      • getConfig

        public T getConfig()
        Deprecated, for removal: This API element is subject to removal in a future version.
        The config of this handle
        Returns:
        the config that this handle holds
      • toString

        public String toString()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Overrides:
        toString in class Object