object DynamicTimeout
Used for the creation of Stack modules that have dynamic timeouts.
- See also
TimeoutFilter
- Alphabetic
- By Inheritance
- DynamicTimeout
- AnyRef
- Any
- Hide All
- Show All
- 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def letPerRequestTimeout[T](timeout: Duration)(f: => T): T
Sets a per-request timeout, scoped to
f
.Sets a per-request timeout, scoped to
f
. It only works in conjunction with a client using the perRequestModule installed in its stack.This applies to each attempt such that if there are retry requests, each of them will have the same timeout.
- timeout
no timeout will be applied if
timeout
is less than or equal to zero or if it is not finite.
- See also
TimeoutFilter
This is similar in concept to com.twitter.finagle.builder.ClientBuilder.requestTimeout, but allows for the timeouts to be dynamic and changed at runtime.
- def letTotalTimeout[T](timeout: Duration)(f: => T): T
Sets a total request timeout, scoped to
f
.Sets a total request timeout, scoped to
f
. It only works in conjunction with a client using totalFilter.This applies to the total request time, including retries.
- timeout
no timeout will be applied if
timeout
is less than or equal to zero or if it is not finite.
- See also
TimeoutFilter
This is similar in concept to com.twitter.finagle.builder.ClientBuilder.timeout, but allows for the timeouts to be dynamic and changed at runtime.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def perRequestModule[Req, Rep]: Stackable[ServiceFactory[Req, Rep]]
A client module that produces a TimeoutFilter for the stack, which allows for dynamic per-request timeouts (e.g.
A client module that produces a TimeoutFilter for the stack, which allows for dynamic per-request timeouts (e.g. retry requests).
This has a similar purpose to using com.twitter.finagle.param.CommonParams.withRequestTimeout, while allowing the timeout to be dynamic.
Note that any LatencyCompensation is added to timeouts.
- See also
totalFilter for a total timeout including all retries.
TimeoutFilter
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()