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 java.lang.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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WatchdogProvidercreate()WatchdoggetWatchdog()booleanneedsCheckInterval()booleanneedsClock()booleanneedsExecutor()booleanshouldAutoClose()WatchdogProviderwithCheckInterval(org.threeten.bp.Duration checkInterval)WatchdogProviderwithClock(com.google.api.core.ApiClock clock)WatchdogProviderwithExecutor(java.util.concurrent.ScheduledExecutorService executor)
-
-
-
Method Detail
-
create
public static WatchdogProvider create()
-
needsClock
public boolean needsClock()
- Specified by:
needsClockin interfaceWatchdogProvider
-
withClock
public WatchdogProvider withClock(@Nonnull com.google.api.core.ApiClock clock)
- Specified by:
withClockin interfaceWatchdogProvider
-
needsCheckInterval
public boolean needsCheckInterval()
- Specified by:
needsCheckIntervalin interfaceWatchdogProvider
-
withCheckInterval
public WatchdogProvider withCheckInterval(@Nonnull org.threeten.bp.Duration checkInterval)
- Specified by:
withCheckIntervalin interfaceWatchdogProvider
-
needsExecutor
public boolean needsExecutor()
- Specified by:
needsExecutorin interfaceWatchdogProvider
-
withExecutor
public WatchdogProvider withExecutor(java.util.concurrent.ScheduledExecutorService executor)
- Specified by:
withExecutorin interfaceWatchdogProvider
-
getWatchdog
@Nullable public Watchdog getWatchdog()
- Specified by:
getWatchdogin interfaceWatchdogProvider
-
shouldAutoClose
public boolean shouldAutoClose()
- Specified by:
shouldAutoClosein interfaceWatchdogProvider
-
-