Package dev.failsafe.internal.util
Class Durations
- java.lang.Object
-
- dev.failsafe.internal.util.Durations
-
public final class Durations extends java.lang.Object
Duration and long utilities.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.time.Duration
MAX_SAFE_NANOS_DURATION
(package private) static long
MAX_SECONDS_PER_LONG
-
Constructor Summary
Constructors Modifier Constructor Description private
Durations()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.time.Duration
ofSafeNanos(java.time.Duration duration)
Returns either theduration
else a Duration containing the max seconds that can safely be converted to nanos without overflowing.
-