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