Package com.google.api.gax.rpc
Class FixedWatchdogProvider
java.lang.Object
com.google.api.gax.rpc.FixedWatchdogProvider
- All Implemented Interfaces:
WatchdogProvider
A watchdog provider which always returns the same watchdog instance provided to the provider
during construction.
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.
-
Method Summary
Modifier and TypeMethodDescriptionstatic WatchdogProviderbooleanbooleanbooleanbooleanReturn true if the watchdog should be automatically unscheduled.withCheckInterval(org.threeten.bp.Duration checkInterval) withExecutor(ScheduledExecutorService executor)
-
Method Details
-
create
-
needsClock
public boolean needsClock()- Specified by:
needsClockin interfaceWatchdogProvider
-
withClock
- Specified by:
withClockin interfaceWatchdogProvider
-
needsCheckInterval
public boolean needsCheckInterval()- Specified by:
needsCheckIntervalin interfaceWatchdogProvider
-
withCheckInterval
- Specified by:
withCheckIntervalin interfaceWatchdogProvider
-
needsExecutor
public boolean needsExecutor()- Specified by:
needsExecutorin interfaceWatchdogProvider
-
withExecutor
- Specified by:
withExecutorin interfaceWatchdogProvider
-
getWatchdog
- Specified by:
getWatchdogin interfaceWatchdogProvider
-
shouldAutoClose
public boolean shouldAutoClose()Description copied from interface:WatchdogProviderReturn true if the watchdog should be automatically unscheduled.- Specified by:
shouldAutoClosein interfaceWatchdogProvider
-