@BetaApi(value="The surface for streaming is not stable yet and may change in the future.") @InternalApi public final class FixedWatchdogProvider extends Object implements WatchdogProvider
This is the internal class and is public only for technical reasons. It may change any time without notice, please do not depend on it explicitly.
| Modifier and Type | Method and Description |
|---|---|
static WatchdogProvider |
create(Watchdog watchdog) |
Watchdog |
getWatchdog() |
boolean |
needsCheckInterval() |
boolean |
needsClock() |
boolean |
needsExecutor() |
boolean |
shouldAutoClose() |
WatchdogProvider |
withCheckInterval(org.threeten.bp.Duration checkInterval) |
WatchdogProvider |
withClock(com.google.api.core.ApiClock clock) |
WatchdogProvider |
withExecutor(ScheduledExecutorService executor) |
public static WatchdogProvider create(Watchdog watchdog)
public boolean needsClock()
needsClock in interface WatchdogProviderpublic WatchdogProvider withClock(@Nonnull com.google.api.core.ApiClock clock)
withClock in interface WatchdogProviderpublic boolean needsCheckInterval()
needsCheckInterval in interface WatchdogProviderpublic WatchdogProvider withCheckInterval(org.threeten.bp.Duration checkInterval)
withCheckInterval in interface WatchdogProviderpublic boolean needsExecutor()
needsExecutor in interface WatchdogProviderpublic WatchdogProvider withExecutor(ScheduledExecutorService executor)
withExecutor in interface WatchdogProviderpublic Watchdog getWatchdog()
getWatchdog in interface WatchdogProviderpublic boolean shouldAutoClose()
shouldAutoClose in interface WatchdogProvider