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
- Alphabetic
- By Inheritance
Inherited
- TimeoutDuration
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def asFiniteApproximation: FiniteDuration
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asJavaApproximation: Duration
- def await[F](description: => String = "", logFailing: Option[Level] = None)(fut: Future[F])(implicit loggingContext: ErrorLoggingContext): F
Same as Await.result, but with this timeout
- def await_(description: => String = "", logFailing: Option[Level] = None)(fut: Future[_])(implicit loggingContext: ErrorLoggingContext): Unit
Same as await, but not returning a value
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- val duration: Duration
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def retries(interval: Duration): Int
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def unwrap: Duration
- 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 withintimeout
. If thefuture
fails with an exception withintimeout
, this method rethrows the exception.- returns
The completed value of
future
if it successfully completes in time.
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])