Annotation Interface RestartConfigs


@Retention(RUNTIME) @Target(TYPE) public @interface RestartConfigs
Services should use this annotation to list all consumed configurations which contain definitions flagged with restart. This annotation is required for the ConfigValueChangeValidator to detect config changes that will require restart of some services. The ConfigInstance values are inherited; any configs annotated on a service will be inherited to all sub-classes of that service. These sub-classes can supplement with more ConfigInstances (in addition to the inherited one) with the annotation. This is different the inheritance that Inherited provides, where sub-classes can either inherit or override the annotation from the super class. NOTE: This annotation will only have effect on subclasses of Service. Do not use this annotation on other types config producers.
Author:
bjorncs
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Class<? extends com.yahoo.config.ConfigInstance>[]
     
  • Element Details

    • value

      Class<? extends com.yahoo.config.ConfigInstance>[] value
      Default:
      {}