Class RuntimeWatcher

java.lang.Object
io.higson.runtime.sync.BaseWatcher
io.higson.runtime.sync.RuntimeWatcher
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
FunctionRuntimeWatcher, ParamRuntimeWatcher

public abstract class RuntimeWatcher extends BaseWatcher implements Runnable
Author:
przemek hertel
  • Constructor Details

    • RuntimeWatcher

      public RuntimeWatcher()
  • Method Details

    • doWatch

      public void doWatch()
    • checkPossibleModification

      public void checkPossibleModification()
    • setEventListener

      public void setEventListener(WatcherEventListener listener)
    • getLastUpdate

      public abstract Date getLastUpdate()
      gets largest last update sync date
      Returns:
      largest lastUpdate Date
    • getAllLastUpdates

      public abstract List<Trackable> getAllLastUpdates()
      gets all synchronized components from specific table
      Returns:
      list of Trackable components
      See Also:
    • getAllCached

      public abstract List<Trackable> getAllCached()
      get all cached elements
      Returns:
      all cached objects
    • invalidate

      public abstract void invalidate(int id)
      removes element in cache
      Parameters:
      id - of element to remove
    • invalidateOrReload

      public abstract void invalidateOrReload(int id)
      the implementation makes the decision whether the supplied element (id) should be: - only invalidated - invalidated and eagery reloaded - reloaded and hot-swapped
    • getElementType

      public abstract ElementType getElementType()
      returns type that watcher is monitoring
      Returns:
      ElementType object
      See Also: