Package org.apache.pekko.http.impl.util
Class JavaDurationConverter$
java.lang.Object
org.apache.pekko.http.impl.util.JavaDurationConverter$
Internal Pekko HTTP API
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JavaDurationConverter$Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontoJava(scala.concurrent.duration.Duration d) 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.
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
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)
-