Interface CacheMonitor
- All Known Implementing Classes:
CacheMonitorImpl
public interface CacheMonitor
- Author:
- paul
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Remove all items from all caches.void
clearCache
(String cacheName) Remove all items from the cache with the given name.void
Disable collection of statistics on the caches.void
Enable collection of statistics on the caches.Obtain the cache statistics in HTML format.
-
Method Details
-
clearAllCaches
void clearAllCaches()Remove all items from all caches. -
clearCache
Remove all items from the cache with the given name.- Parameters:
cacheName
- cache- Throws:
IllegalArgumentException
- if no such cache exist with the given name
-
disableStatistics
void disableStatistics()Disable collection of statistics on the caches. -
enableStatistics
void enableStatistics()Enable collection of statistics on the caches. -
getStats
Obtain the cache statistics in HTML format.- Parameters:
locale
- a locale to use to format numbers and render messages
-