Interface WatchdogProvider (2.34.0)

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
clockApiClock
Returns
TypeDescription
WatchdogProvider

withExecutor(ScheduledExecutorService executor)

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