public interface TimeoutAccess extends TimeoutAccess
Modifier and Type | Method and Description |
---|---|
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
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)