Interface TimeoutAccess
- All Superinterfaces:
- TimeoutAccess
Not for user extension.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the currently set timeout.scala.concurrent.duration.Durationtimeout()Returns the currently set timeout.voidupdate(scala.concurrent.duration.Duration timeout, scala.Function1<HttpRequest, HttpResponse> handler) Tries to set a new timeout and handler at the same time.voidupdateHandler(scala.Function1<HttpRequest, HttpResponse> handler) Tries to set a new timeout handler, which produces the timeout response for a given request.voidupdateTimeout(scala.concurrent.duration.Duration timeout) Tries to set a new timeout.Methods inherited from interface org.apache.pekko.http.javadsl.TimeoutAccessupdate, update, updateHandler, updateTimeout
- 
Method Details- 
getTimeoutDuration getTimeout()Description copied from interface:TimeoutAccessReturns 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`. - Specified by:
- getTimeoutin interface- TimeoutAccess
 
- 
timeoutscala.concurrent.duration.Duration 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! - Returns:
- (undocumented)
 
- 
updatevoid update(scala.concurrent.duration.Duration timeout, scala.Function1<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! - Parameters:
- timeout- (undocumented)
- handler- (undocumented)
 
- 
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! - Parameters:
- handler- (undocumented)
 
- 
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! UseDuration.Infto 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! - Specified by:
- updateTimeoutin interface- TimeoutAccess
- Parameters:
- timeout- (undocumented)
 
 
-