public class ConfigData
extends java.lang.Object
ConfigProvider
.Constructor and 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).
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.String> |
data()
Returns the data.
|
java.lang.Long |
ttl()
Returns the TTL (in milliseconds).
|
public ConfigData(java.util.Map<java.lang.String,java.lang.String> data, java.lang.Long ttl)
data
- a Map of key-value pairsttl
- the time-to-live of the data in milliseconds, or null if there is no TTLpublic ConfigData(java.util.Map<java.lang.String,java.lang.String> data)
data
- a Map of key-value pairs