Class FixedWatchdogProvider (2.18.7)

public final class FixedWatchdogProvider implements 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.

Inheritance

java.lang.Object > FixedWatchdogProvider

Implements

WatchdogProvider

Static Methods

create(Watchdog watchdog)

public static WatchdogProvider create(Watchdog watchdog)
Parameter
NameDescription
watchdogWatchdog
Returns
TypeDescription
WatchdogProvider

Methods

getWatchdog()

public Watchdog getWatchdog()
Returns
TypeDescription
Watchdog

needsCheckInterval()

public boolean needsCheckInterval()
Returns
TypeDescription
boolean

needsClock()

public boolean needsClock()
Returns
TypeDescription
boolean

needsExecutor()

public boolean needsExecutor()
Returns
TypeDescription
boolean

shouldAutoClose()

public boolean shouldAutoClose()
Returns
TypeDescription
boolean

withCheckInterval(Duration checkInterval)

public WatchdogProvider withCheckInterval(Duration checkInterval)
Parameter
NameDescription
checkIntervalorg.threeten.bp.Duration
Returns
TypeDescription
WatchdogProvider

withClock(ApiClock clock)

public WatchdogProvider withClock(ApiClock clock)
Parameter
NameDescription
clockcom.google.api.core.ApiClock
Returns
TypeDescription
WatchdogProvider

withExecutor(ScheduledExecutorService executor)

public WatchdogProvider withExecutor(ScheduledExecutorService executor)
Parameter
NameDescription
executorScheduledExecutorService
Returns
TypeDescription
WatchdogProvider