Package com.google.api.gax.rpc
Interface WatchdogProvider
-
- All Known Implementing Classes:
FixedWatchdogProvider,InstantiatingWatchdogProvider
public interface WatchdogProvider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WatchdoggetWatchdog()booleanneedsCheckInterval()booleanneedsClock()booleanneedsExecutor()booleanshouldAutoClose()Return true if the watchdog should be automatically unscheduled.WatchdogProviderwithCheckInterval(org.threeten.bp.Duration checkInterval)WatchdogProviderwithClock(ApiClock clock)WatchdogProviderwithExecutor(ScheduledExecutorService executor)
-
-
-
Method Detail
-
needsClock
boolean needsClock()
-
withClock
WatchdogProvider withClock(@Nonnull ApiClock clock)
-
needsCheckInterval
boolean needsCheckInterval()
-
withCheckInterval
WatchdogProvider withCheckInterval(org.threeten.bp.Duration checkInterval)
-
needsExecutor
boolean needsExecutor()
-
withExecutor
WatchdogProvider withExecutor(ScheduledExecutorService executor)
-
getWatchdog
Watchdog getWatchdog()
-
shouldAutoClose
boolean shouldAutoClose()
Return true if the watchdog should be automatically unscheduled.
-
-