Package one.microstream.cache
Interface CacheConfigurationParser
- All Known Implementing Classes:
CacheConfigurationParser.Default
public interface CacheConfigurationParser
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classCacheConfigurationParser.Default -
Method Summary
Modifier and Type Method Description static CacheConfigurationParserNew()Creates a newCacheConfigurationParser.static CacheConfigurationParserNew(CacheConfigurationPropertyParser propertyParser)Creates a newCacheConfigurationParser.CacheConfiguration<?,?>parse(String data)Parses the configuration from the given input.<K, V> CacheConfiguration<K,V>parse(String data, Class<K> keyType, Class<V> valueType)Parses the configuration from the given input.
-
Method Details
-
parse
Parses the configuration from the given input.- Parameters:
data- the input to parse- Returns:
- the parsed configuration
- Throws:
CacheConfigurationException- if an error occurs while parsing
-
parse
Parses the configuration from the given input.- Parameters:
data- the input to parsekeyType- the key typevalueType- the value type- Returns:
- the parsed configuration
- Throws:
CacheConfigurationException- if an error occurs while parsing
-
New
Creates a newCacheConfigurationParser. -
New
Creates a newCacheConfigurationParser.- Parameters:
propertyParser- a custom property parser
-