Package com.google.api.gax.rpc
Class InstantiatingWatchdogProvider
java.lang.Object
com.google.api.gax.rpc.InstantiatingWatchdogProvider
- All Implemented Interfaces:
WatchdogProvider
@InternalApi
public final class InstantiatingWatchdogProvider
extends Object
implements WatchdogProvider
A watchdog provider which instantiates a new provider on every request.
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 WatchdogProvidercreate()booleanbooleanbooleanbooleanReturn 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
-