Package io.higson.runtime.sync
Class VersionRuntimeWatcher
java.lang.Object
io.higson.runtime.sync.BaseWatcher
io.higson.runtime.sync.VersionRuntimeWatcher
- All Implemented Interfaces:
Runnable
- Author:
- przemek hertel
-
Field Summary
FieldsFields inherited from class io.higson.runtime.sync.BaseWatcher
config, log, running -
Constructor Summary
ConstructorsConstructorDescriptionVersionRuntimeWatcher(VersionDao dao, FunctionCache functionCache, PreparedParamCache paramCache, SystemVersionCache systemVersionCache, UserRegionVersionCache userRegionVersionCache) -
Method Summary
Modifier and TypeMethodDescriptionvoiddoWatch()protected Stringprotected voidsync(Map<Integer, RegionVersion> prevMap, Map<Integer, RegionVersion> freshMap) Methods inherited from class io.higson.runtime.sync.BaseWatcher
getConfig, isRunning, print, print, run, setConfig, start, stop, watch
-
Field Details
-
timestamp
-
-
Constructor Details
-
VersionRuntimeWatcher
public VersionRuntimeWatcher(VersionDao dao, FunctionCache functionCache, PreparedParamCache paramCache, SystemVersionCache systemVersionCache, UserRegionVersionCache userRegionVersionCache)
-
-
Method Details
-
doWatch
public void doWatch()- Specified by:
doWatchin classBaseWatcher
-
sync
public SyncResult<RegionVersion> sync(Map<Integer, RegionVersion> prevMap, Map<Integer, RegionVersion> freshMap) -
initWatcher
protected void initWatcher()- Overrides:
initWatcherin classBaseWatcher
-
getWatcherName
- Specified by:
getWatcherNamein classBaseWatcher
-