Package one.microstream.cache.types
Class CacheConfigurationParser.Default
java.lang.Object
one.microstream.cache.types.CacheConfigurationParser.Default
- All Implemented Interfaces:
CacheConfigurationParser
,CacheConfigurationPropertyNames
- Enclosing interface:
- CacheConfigurationParser
public static class CacheConfigurationParser.Default extends Object implements CacheConfigurationParser, CacheConfigurationPropertyNames
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.cache.types.CacheConfigurationParser
CacheConfigurationParser.Default
-
Field Summary
Fields inherited from interface one.microstream.cache.types.CacheConfigurationPropertyNames
CACHE_LOADER_FACTORY, CACHE_WRITER_FACTORY, EVICTION_MANAGER_FACTORY, EXPIRY_POLICY_FACTORY, KEY_TYPE, MANAGEMENT_ENABLED, READ_THROUGH, STATISTICS_ENABLED, STORAGE, STORAGE_CONFIGURATION_RESOURCE_NAME, STORAGE_KEY, STORE_BY_VALUE, VALUE_TYPE, WRITE_THROUGH
-
Method Summary
Modifier and Type Method Description 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.protected void
parseProperties(String data, Map<String,String> properties)
protected Class<?>
valueAsClass(String value, Class<?> defaultValue)
-
Method Details
-
parse
Description copied from interface:CacheConfigurationParser
Parses the configuration from the given input.- Specified by:
parse
in interfaceCacheConfigurationParser
- Parameters:
data
- the input to parse- Returns:
- the parsed configuration
-
parse
Description copied from interface:CacheConfigurationParser
Parses the configuration from the given input.- Specified by:
parse
in interfaceCacheConfigurationParser
- Type Parameters:
K
- the key typeV
- the value type- Parameters:
data
- the input to parsekeyType
- the class for the key typevalueType
- the class for value type- Returns:
- the parsed configuration
-
valueAsClass
-
parseProperties
-