public class ConfigTransformerResult
extends java.lang.Object
ConfigTransformer
.Constructor and 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.
|
Modifier and Type | Method and 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.
|
public ConfigTransformerResult(java.util.Map<java.lang.String,java.lang.String> data, java.util.Map<java.lang.String,java.lang.Long> ttls)
data
- a Map of key-value pairsttls
- a Map of path and TTL values (in milliseconds)public java.util.Map<java.lang.String,java.lang.String> data()
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.
public java.util.Map<java.lang.String,java.lang.Long> ttls()