Class ConfigData


  • public class ConfigData
    extends java.lang.Object
    Configuration data from a ConfigProvider.
    • Constructor Summary

      Constructors 
      Constructor Description
      ConfigData​(java.util.Map<java.lang.String,​java.lang.String> data)
      Creates a new ConfigData with the given data.
      ConfigData​(java.util.Map<java.lang.String,​java.lang.String> data, java.lang.Long ttl)
      Creates a new ConfigData with the given data and TTL (in milliseconds).
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.String> data()
      Returns the data.
      java.lang.Long ttl()
      Returns the TTL (in milliseconds).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConfigData

        public ConfigData​(java.util.Map<java.lang.String,​java.lang.String> data,
                          java.lang.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​(java.util.Map<java.lang.String,​java.lang.String> data)
        Creates a new ConfigData with the given data.
        Parameters:
        data - a Map of key-value pairs
    • Method Detail

      • data

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

        public java.lang.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