@InternalApi public class Watchdog extends Object implements Runnable
For every checkInterval, this class checks two thresholds:
| Constructor and Description |
|---|
Watchdog(com.google.api.core.ApiClock clock) |
| Modifier and Type | Method and Description |
|---|---|
void |
run() |
<ResponseT> |
watch(ResponseObserver<ResponseT> innerObserver,
org.threeten.bp.Duration waitTimeout,
org.threeten.bp.Duration idleTimeout)
Wraps the target observer with timing constraints.
|
public <ResponseT> ResponseObserver<ResponseT> watch(ResponseObserver<ResponseT> innerObserver, @Nonnull org.threeten.bp.Duration waitTimeout, @Nonnull org.threeten.bp.Duration idleTimeout)