Skip to content

Commit

Permalink
feat: allow customize CacheNotifyMonitor
Browse files Browse the repository at this point in the history
  • Loading branch information
areyouok committed Aug 14, 2024
1 parent 26b9139 commit 6f576ce
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,13 @@ public void addMonitors(CacheManager cacheManager, Cache cache, QuickConfig quic
}
}

CacheMonitor monitor = new CacheNotifyMonitor(cacheManager, area, quickConfig.getName());
CacheMonitor monitor = createMonitor(cacheManager, quickConfig, area);
cache.config().getMonitors().add(monitor);
}

protected CacheMonitor createMonitor(CacheManager cacheManager, QuickConfig quickConfig, String area) {
return new CacheNotifyMonitor(cacheManager, area, quickConfig.getName());
}


}

0 comments on commit 6f576ce

Please sign in to comment.