Interface WatchdogProvider (2.20.1)

public interface WatchdogProvider

Methods

getWatchdog()

public abstract Watchdog getWatchdog()
Returns
TypeDescription
Watchdog

needsCheckInterval()

public abstract boolean needsCheckInterval()
Returns
TypeDescription
boolean

needsClock()

public abstract boolean needsClock()
Returns
TypeDescription
boolean

needsExecutor()

public abstract boolean needsExecutor()
Returns
TypeDescription
boolean

shouldAutoClose()

public abstract boolean shouldAutoClose()

Return true if the watchdog should be automatically unscheduled.

Returns
TypeDescription
boolean

withCheckInterval(Duration checkInterval)

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

withClock(ApiClock clock)

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

withExecutor(ScheduledExecutorService executor)

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