Package dev.failsafe.internal.util
Class Durations
java.lang.Object
dev.failsafe.internal.util.Durations
Duration and long utilities.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Duration
ofSafeNanos
(Duration duration) Returns either theduration
else a Duration containing the max seconds that can safely be converted to nanos without overflowing.
-
Field Details
-
MAX_SECONDS_PER_LONG
static long MAX_SECONDS_PER_LONG -
MAX_SAFE_NANOS_DURATION
-
-
Constructor Details
-
Durations
private Durations()
-
-
Method Details
-
ofSafeNanos
Returns either theduration
else a Duration containing the max seconds that can safely be converted to nanos without overflowing.
-