public interface TimeoutAccess extends TimeoutAccess
Not for user extension.
Modifier and Type | Method and Description |
---|---|
scala.concurrent.duration.Duration |
getTimeout()
Java API
|
scala.concurrent.duration.Duration |
timeout()
Returns the currently set timeout.
|
void |
update(scala.concurrent.duration.Duration timeout,
scala.Function1<HttpRequest,HttpResponse> handler)
Tries to set a new timeout and handler at the same time.
|
void |
updateHandler(scala.Function1<HttpRequest,HttpResponse> handler)
Tries to set a new timeout handler, which produces the timeout response for a
given request.
|
void |
updateTimeout(scala.concurrent.duration.Duration timeout)
Tries to set a new timeout.
|
update, updateHandler
scala.concurrent.duration.Duration getTimeout()
getTimeout
in interface TimeoutAccess
scala.concurrent.duration.Duration timeout()
Due to the inherent raciness it is not guaranteed that the returned timeout was applied before the previously set timeout has expired!
void update(scala.concurrent.duration.Duration timeout, scala.Function1<HttpRequest,HttpResponse> handler)
Due to the inherent raciness it is not guaranteed that the update will be applied before the previously set timeout has expired!
timeout
- (undocumented)handler
- (undocumented)void updateHandler(scala.Function1<HttpRequest,HttpResponse> handler)
Due to the inherent raciness it is not guaranteed that the update will be applied before the previously set timeout has expired!
handler
- (undocumented)void updateTimeout(scala.concurrent.duration.Duration timeout)
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!
updateTimeout
in interface TimeoutAccess
timeout
- (undocumented)