Class Durations

java.lang.Object
dev.failsafe.internal.util.Durations

public final class Durations extends Object
Duration and long utilities.
  • Method Details

    • ofSafeNanos

      public static Duration ofSafeNanos(Duration duration)
      Returns either the duration else a Duration containing the max seconds that can safely be converted to nanos without overflowing.