Github user StephanEwen commented on the issue:

    https://github.com/apache/flink/pull/2680
  
    I added a new way to define configuration options (see below). It is a much 
more maintainable way of defining configuration options.
    
    Would be great if we used that for all new options that we create, and 
lazily migrate existing parameters to that pattern.
    
    ```java
    ConfigOption<Double> threshold = ConfigOptions
        .key("cpu.utilization.threshold")
        .defaultValue(0.9).
        .withDeprecatedKeys("cpu.threshold");
    ```
    
    Here is a complete example: 
https://github.com/apache/flink/blob/master/flink-core/src/main/java/org/apache/flink/configuration/HighAvailabilityOptions.java


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to