Class DurationUtil

java.lang.Object
io.quarkus.redis.runtime.datasource.DurationUtil

class DurationUtil extends Object
  • Constructor Details

    • DurationUtil

      DurationUtil()
  • Method Details

    • durationToSeconds

      static Number durationToSeconds(Duration duration)
      Returns given duration converted to a number of seconds. If the given duration represents a whole number of seconds, the result is a Long, otherwise it is a Double with millisecond precision.
      Returns:
      given duration converted to a number of seconds