trait TimeoutAccess extends javadsl.TimeoutAccess
Enables programmatic access to the server-side request timeout logic.
Not for user extension.
- Annotations
- @DoNotInherit()
- Source
- TimeoutAccess.scala
- Alphabetic
- By Inheritance
- TimeoutAccess
- TimeoutAccess
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def timeout: Duration
Returns the currently set timeout.
Returns the currently set timeout. The timeout period is measured as of the point in time that the end of the request has been received, which may be in the past or in the future!
Due to the inherent raciness it is not guaranteed that the returned timeout was applied before the previously set timeout has expired!
- abstract def update(timeout: Duration, handler: (HttpRequest) => HttpResponse): Unit
Tries to set a new timeout and handler at the same time.
Tries to set a new timeout and handler at the same time.
Due to the inherent raciness it is not guaranteed that the update will be applied before the previously set timeout has expired!
- abstract def update(timeout: Duration, handler: Function[HttpRequest, HttpResponse]): Unit
Tries to set a new timeout and handler at the same time.
Tries to set a new timeout and handler at the same time.
Due to the inherent raciness it is not guaranteed that the update will be applied before the previously set timeout has expired!
- Definition Classes
- TimeoutAccess
- abstract def updateHandler(handler: (HttpRequest) => HttpResponse): Unit
Tries to set a new timeout handler, which produces the timeout response for a given request.
Tries to set a new timeout handler, which produces the timeout response for a given request. Note that the handler must produce the response synchronously and shouldn't block!
Due to the inherent raciness it is not guaranteed that the update will be applied before the previously set timeout has expired!
- abstract def updateHandler(handler: Function[HttpRequest, HttpResponse]): Unit
Tries to set a new timeout handler, which produces the timeout response for a given request.
Tries to set a new timeout handler, which produces the timeout response for a given request. Note that the handler must produce the response synchronously and shouldn't block!
Due to the inherent raciness it is not guaranteed that the update will be applied before the previously set timeout has expired!
- Definition Classes
- TimeoutAccess
- abstract def updateTimeout(timeout: Duration): Unit
Tries to set a new timeout.
Tries to set a new timeout. The timeout period is measured as of the point in time that the end of the request has been received, which may be in the past or in the future! Use
Duration.Inf
to completely disable request timeout checking for this request.Due to the inherent raciness it is not guaranteed that the update will be applied before the previously set timeout has expired!
- Definition Classes
- TimeoutAccess → TimeoutAccess
Concrete Value Members
- def getTimeout(): Duration
Java API
Java API
- Definition Classes
- TimeoutAccess → TimeoutAccess