Class TypeConverters.DurationConverter
java.lang.Object
org.apache.logging.log4j.core.config.plugins.convert.TypeConverters.DurationConverter
- All Implemented Interfaces:
TypeConverter<Duration>
- Enclosing class:
- TypeConverters
@Plugin(name="Duration",
category="TypeConverter")
@Deprecated
public static class TypeConverters.DurationConverter
extends Object
implements TypeConverter<Duration>
Deprecated.
- Since:
- 2.5
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
DurationConverter
public DurationConverter()Deprecated.
-
-
Method Details
-
convert
Deprecated.Description copied from interface:TypeConverter
Converts a String to a given type.- Specified by:
convert
in interfaceTypeConverter<Duration>
- Parameters:
s
- the String to convert. Cannot benull
.- Returns:
- the converted object.
-
Duration
converter will be available in 3.0.0.