@DoNotInherit
public interface TimeoutAccess
Not for user extension.
Modifier and Type | Method and Description |
---|---|
scala.concurrent.duration.Duration |
getTimeout()
Returns the currently set timeout.
|
void |
update(scala.concurrent.duration.Duration timeout,
org.apache.pekko.japi.Function<HttpRequest,HttpResponse> handler)
Tries to set a new timeout and handler at the same time.
|
void |
updateHandler(org.apache.pekko.japi.Function<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.
|
scala.concurrent.duration.Duration getTimeout()
Due to the inherent raciness it is not guaranteed that the returned timeout was applied before the previously set timeout has expired!
void updateTimeout(scala.concurrent.duration.Duration timeout)
Due to the inherent raciness it is not guaranteed that the update will be applied before the previously set timeout has expired!
void updateHandler(org.apache.pekko.japi.Function<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!
void update(scala.concurrent.duration.Duration timeout, org.apache.pekko.japi.Function<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!