Package org.apache.pekko.http.impl.util
Class JavaDurationConverter
java.lang.Object
org.apache.pekko.http.impl.util.JavaDurationConverter
Internal Pekko HTTP API
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DurationtoJava(scala.concurrent.duration.Duration d) static scala.concurrent.duration.DurationInverse oftoJava(scala.concurrent.duration.Duration):ChronoUnit.FOREVER.getDurationis mapped back toDuration.Inf, every other value is converted to a finite duration.
-
Constructor Details
-
JavaDurationConverter
public JavaDurationConverter()
-
-
Method Details
-
toJava
-
toScala
Inverse oftoJava(scala.concurrent.duration.Duration):ChronoUnit.FOREVER.getDurationis mapped back toDuration.Inf, every other value is converted to a finite duration.- Parameters:
d- (undocumented)- Returns:
- (undocumented)
- Throws:
IllegalArgumentException- if the value is notChronoUnit.FOREVER.getDurationbut too large for a finite Scala duration (about 292 years)
-