Packages

case class TimeoutDuration(duration: Duration) extends Product with Serializable

Duration class used for timeouts.

There are two options: either it's a non-negative duration or an infinite duration

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TimeoutDuration
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new TimeoutDuration(duration: Duration)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def asFiniteApproximation: FiniteDuration
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def asJavaApproximation: Duration
  7. def await[F](description: => String = "", logFailing: Option[Level] = None)(fut: Future[F])(implicit loggingContext: ErrorLoggingContext): F

    Same as Await.result, but with this timeout

  8. def await_(description: => String = "", logFailing: Option[Level] = None)(fut: Future[_])(implicit loggingContext: ErrorLoggingContext): Unit

    Same as await, but not returning a value

  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  10. val duration: Duration
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. def productElementNames: Iterator[String]
    Definition Classes
    Product
  18. def retries(interval: Duration): Int
  19. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  20. def unwrap: Duration
  21. def valueOrLog[T](description: => String = "", level: Level = Level.WARN)(fut: => Future[T])(implicit loggingContext: ErrorLoggingContext): Option[T]

    Await the completion of future.

    Await the completion of future. Log a message if the future does not complete within timeout. If the future fails with an exception within timeout, this method rethrows the exception.

    returns

    The completed value of future if it successfully completes in time.

  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped