Class ThresholdConverter
- java.lang.Object
-
- io.quarkus.resteasy.common.runtime.config.ThresholdConverter
-
- All Implemented Interfaces:
Serializable,org.eclipse.microprofile.config.spi.Converter<org.jboss.resteasy.spi.config.Threshold>
@Priority(200) public class ThresholdConverter extends Object implements org.eclipse.microprofile.config.spi.Converter<org.jboss.resteasy.spi.config.Threshold>, Serializable
A converter for aThresholdinterface.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ThresholdConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jboss.resteasy.spi.config.Thresholdconvert(String value)The converter accepts a value which start with a number by implicitly appending `PT` to it.
-
-
-
Method Detail
-
convert
public org.jboss.resteasy.spi.config.Threshold convert(String value)
The converter accepts a value which start with a number by implicitly appending `PT` to it. If the value consists only of a number, it implicitly treats the value as seconds. Otherwise, tries to convert the value assuming that it is in the accepted ISO-8601 duration format.- Specified by:
convertin interfaceorg.eclipse.microprofile.config.spi.Converter<org.jboss.resteasy.spi.config.Threshold>- Parameters:
value- duration as String- Returns:
Duration
-
-