Interface WatchdogProvider (2.55.0)

public interface WatchdogProvider

Methods

getWatchdog()

public abstract Watchdog getWatchdog()
Returns
Type Description
Watchdog

needsCheckInterval()

public abstract boolean needsCheckInterval()
Returns
Type Description
boolean

needsClock()

public abstract boolean needsClock()
Returns
Type Description
boolean

needsExecutor()

public abstract boolean needsExecutor()
Returns
Type Description
boolean

shouldAutoClose()

public abstract boolean shouldAutoClose()

Return true if the watchdog should be automatically unscheduled.

Returns
Type Description
boolean

withCheckInterval(Duration checkInterval)

public abstract WatchdogProvider withCheckInterval(Duration checkInterval)

This method is obsolete. Use #withCheckIntervalDuration(java.time.Duration) instead.

Parameter
Name Description
checkInterval org.threeten.bp.Duration
Returns
Type Description
WatchdogProvider

withCheckIntervalDuration(Duration checkInterval)

public default WatchdogProvider withCheckIntervalDuration(Duration checkInterval)
Parameter
Name Description
checkInterval Duration
Returns
Type Description
WatchdogProvider

withClock(ApiClock clock)

public abstract WatchdogProvider withClock(ApiClock clock)
Parameter
Name Description
clock ApiClock
Returns
Type Description
WatchdogProvider

withExecutor(ScheduledExecutorService executor)

public abstract WatchdogProvider withExecutor(ScheduledExecutorService executor)
Parameter
Name Description
executor ScheduledExecutorService
Returns
Type Description
WatchdogProvider