Class FixedWatchdogProvider (2.7.1)

  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

Methods

create(Watchdog watchdog)

  public 
  
 static 
  
 WatchdogProvider 
  
 create 
 ( 
 Watchdog 
  
 watchdog 
 ) 
 
Parameter
Name Description
watchdog Watchdog
Returns
Type Description
WatchdogProvider

getWatchdog()

  public 
  
 Watchdog 
  
 getWatchdog 
 () 
 
Returns
Type Description
Watchdog

needsCheckInterval()

  public 
  
 boolean 
  
 needsCheckInterval 
 () 
 
Returns
Type Description
boolean

needsClock()

  public 
  
 boolean 
  
 needsClock 
 () 
 
Returns
Type Description
boolean

needsExecutor()

  public 
  
 boolean 
  
 needsExecutor 
 () 
 
Returns
Type Description
boolean

shouldAutoClose()

  public 
  
 boolean 
  
 shouldAutoClose 
 () 
 
Returns
Type Description
boolean

withCheckInterval(Duration checkInterval)

  public 
  
 WatchdogProvider 
  
 withCheckInterval 
 ( 
 Duration 
  
 checkInterval 
 ) 
 
Parameter
Name Description
checkInterval org.threeten.bp.Duration
Returns
Type Description
WatchdogProvider

withClock(ApiClock clock)

  public 
  
 WatchdogProvider 
  
 withClock 
 ( 
 ApiClock 
  
 clock 
 ) 
 
Parameter
Name Description
clock com.google.api.core.ApiClock
Returns
Type Description
WatchdogProvider

withExecutor(ScheduledExecutorService executor)

  public 
  
 WatchdogProvider 
  
 withExecutor 
 ( 
 ScheduledExecutorService 
  
 executor 
 ) 
 
Parameter
Name Description
executor ScheduledExecutorService
Returns
Type Description
WatchdogProvider
Create a Mobile Website
View Site in Mobile | Classic
Share by: