Class DurationConfigValueExtractor
java.lang.Object
ru.tinkoff.kora.config.common.extractor.DurationConfigValueExtractor
- All Implemented Interfaces:
ru.tinkoff.kora.common.Mapping.MappingFunction,ConfigValueExtractor<Duration>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionextract(ConfigValue<?> value) static DurationextractFromValue(ConfigValue<?> value) static longparseDuration(ConfigValue<String> configValue) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ru.tinkoff.kora.config.common.extractor.ConfigValueExtractor
map
-
Constructor Details
-
DurationConfigValueExtractor
public DurationConfigValueExtractor()
-
-
Method Details
-
extract
- Specified by:
extractin interfaceConfigValueExtractor<Duration>
-
extractFromValue
-
parseDuration
-