Class ConfigData

java.lang.Object
org.apache.kafka.common.config.ConfigData

public class ConfigData extends Object
Configuration data from a ConfigProvider.
  • Constructor Details

    • ConfigData

      public ConfigData(Map<String,String> data, Long ttl)
      Creates a new ConfigData with the given data and TTL (in milliseconds).
      Parameters:
      data - a Map of key-value pairs
      ttl - the time-to-live of the data in milliseconds, or null if there is no TTL
    • ConfigData

      public ConfigData(Map<String,String> data)
      Creates a new ConfigData with the given data.
      Parameters:
      data - a Map of key-value pairs
  • Method Details

    • data

      public Map<String,String> data()
      Returns the data.
      Returns:
      data a Map of key-value pairs
    • ttl

      public Long ttl()
      Returns the TTL (in milliseconds).
      Returns:
      ttl the time-to-live (in milliseconds) of the data, or null if there is no TTL