Class BaseWatcher

java.lang.Object
io.higson.runtime.sync.BaseWatcher
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
DevModeWatcher, DomainRuntimeWatcher, ProfileRuntimeWatcher, RefreshRuntimeWatcher, RuntimeWatcher, ScheduleRuntimeWatcher, UserRegionVersionRuntimeWatcher, VersionRuntimeWatcher

public abstract class BaseWatcher extends Object implements Runnable
Author:
przemek hertel
  • Field Details

    • log

      protected final org.slf4j.Logger log
    • running

      protected volatile boolean running
    • config

      protected WatcherConfig config
  • Constructor Details

    • BaseWatcher

      public BaseWatcher()
  • Method Details

    • doWatch

      protected abstract void doWatch()
    • getWatcherName

      protected abstract String getWatcherName()
    • start

      public void start()
    • stop

      public void stop()
    • run

      public void run()
      Specified by:
      run in interface Runnable
    • initWatcher

      protected void initWatcher()
    • watch

      protected void watch()
    • isRunning

      public boolean isRunning()
    • setConfig

      public void setConfig(WatcherConfig config)
    • getConfig

      public WatcherConfig getConfig()
    • print

      protected String print(Date d)
    • print

      protected String print(long t)