Class ConfigTransformerResult


  • public class ConfigTransformerResult
    extends java.lang.Object
    The result of a transformation from ConfigTransformer.
    • Constructor Summary

      Constructors 
      Constructor Description
      ConfigTransformerResult​(java.util.Map<java.lang.String,​java.lang.String> data, java.util.Map<java.lang.String,​java.lang.Long> ttls)
      Creates a new ConfigTransformerResult with the given data and TTL values for a set of paths.
    • 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 transformed data, with variables replaced with corresponding values from the ConfigProvider instances if found.
      java.util.Map<java.lang.String,​java.lang.Long> ttls()
      Returns the TTL values (in milliseconds) returned from the ConfigProvider instances for a given set of paths.
      • Methods inherited from class java.lang.Object

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

      • ConfigTransformerResult

        public ConfigTransformerResult​(java.util.Map<java.lang.String,​java.lang.String> data,
                                       java.util.Map<java.lang.String,​java.lang.Long> ttls)
        Creates a new ConfigTransformerResult with the given data and TTL values for a set of paths.
        Parameters:
        data - a Map of key-value pairs
        ttls - a Map of path and TTL values (in milliseconds)
    • Method Detail

      • data

        public java.util.Map<java.lang.String,​java.lang.String> data()
        Returns the transformed data, with variables replaced with corresponding values from the ConfigProvider instances if found.

        Modifying the transformed data that is returned does not affect the ConfigProvider nor the original data that was used as the source of the transformation.

        Returns:
        data a Map of key-value pairs
      • ttls

        public java.util.Map<java.lang.String,​java.lang.Long> ttls()
        Returns the TTL values (in milliseconds) returned from the ConfigProvider instances for a given set of paths.
        Returns:
        data a Map of path and TTL values