Class FixedSetRecommender

java.lang.Object
io.aiven.kafka.connect.common.config.FixedSetRecommender
All Implemented Interfaces:
org.apache.kafka.common.config.ConfigDef.Recommender

public final class FixedSetRecommender extends Object implements org.apache.kafka.common.config.ConfigDef.Recommender
A ConfigDef.Recommender that always supports only the predefined set of values. visible(String, Map) is always true.
  • Method Details

    • validValues

      public List<Object> validValues(String name, Map<String,Object> parsedConfig)
      Specified by:
      validValues in interface org.apache.kafka.common.config.ConfigDef.Recommender
    • visible

      public boolean visible(String name, Map<String,Object> parsedConfig)
      Specified by:
      visible in interface org.apache.kafka.common.config.ConfigDef.Recommender
    • ofSupportedValues

      public static FixedSetRecommender ofSupportedValues(Collection<?> supportedValues)