@InternalApi(value="For internal usage only") public class Watchdog extends Object implements Runnable
Periodically this class checks two thresholds:
For internal use only - public for technical reasons.
Modifier and Type | Class and Description |
---|---|
static class |
Watchdog.State |
static class |
Watchdog.StreamWaitTimeoutException
Marker exception to replace cancelled status with aborted to allow retries.
|
Constructor and Description |
---|
Watchdog(com.google.api.client.util.Clock clock,
long waitTimeoutMs) |
Watchdog(com.google.api.client.util.Clock clock,
long waitTimeoutMs,
long idleTimeoutMs) |
Modifier and Type | Method and Description |
---|---|
void |
run() |
void |
start(ScheduledExecutorService executor) |
void |
stop() |
<ReqT,RespT> |
watch(io.grpc.ClientCall<ReqT,RespT> innerCall) |
public Watchdog(com.google.api.client.util.Clock clock, long waitTimeoutMs)
public Watchdog(com.google.api.client.util.Clock clock, long waitTimeoutMs, long idleTimeoutMs)
public <ReqT,RespT> io.grpc.ClientCall<ReqT,RespT> watch(io.grpc.ClientCall<ReqT,RespT> innerCall)
public void start(ScheduledExecutorService executor)
public void stop()