Interface TimeoutAccess
- All Known Subinterfaces:
- TimeoutAccess
Not for user extension.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the currently set timeout.voidupdate(Duration timeout, org.apache.pekko.japi.function.Function<HttpRequest, HttpResponse> handler) Tries to set a new timeout and handler at the same time.voidupdate(scala.concurrent.duration.Duration timeout, org.apache.pekko.japi.function.Function<HttpRequest, HttpResponse> handler) Tries to set a new timeout and handler at the same time.voidupdateHandler(org.apache.pekko.japi.function.Function<HttpRequest, HttpResponse> handler) Tries to set a new timeout handler, which produces the timeout response for a given request.voidupdateTimeout(Duration timeout) Tries to set a new timeout.voidupdateTimeout(scala.concurrent.duration.Duration timeout) Tries to set a new timeout.
- 
Method Details- 
getTimeoutDuration getTimeout()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! In 2.0.0, the return type of this method changed from `scala.concurrent.duration.Duration` to `java.time.Duration`. 
- 
updateTimeoutvoid updateTimeout(scala.concurrent.duration.Duration 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 `scala.concurrent.duration.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! 
- 
updateTimeoutTries 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 a `java.time.Duration` with a long duration to disable request timeout checking for this request (e.g. `java.time.temporal.ChronoUnit.FOREVER.getDuration()`).Due to the inherent raciness it is not guaranteed that the update will be applied before the previously set timeout has expired! - Since:
- 1.3.0
 
- 
updateHandlerTries 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! 
- 
updatevoid update(scala.concurrent.duration.Duration timeout, org.apache.pekko.japi.function.Function<HttpRequest, HttpResponse> handler) 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! 
- 
updatevoid update(Duration timeout, org.apache.pekko.japi.function.Function<HttpRequest, HttpResponse> handler) 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! - Since:
- 1.3.0
 
 
-