Package org.opencms.loader.imagecache
Interface I_CmsImageCacheMaintenance
- All Known Implementing Classes:
CmsFsImageCacheMaintenance,CmsRfsImageCacheMaintenance,CmsS3ImageCacheMaintenance
public interface I_CmsImageCacheMaintenance
Backend SPI for image cache maintenance.
-
Method Summary
Modifier and TypeMethodDescriptionexecute(CmsImageCacheMaintenanceRequest request) Executes a maintenance request.Returns the backend identifier used for diagnostics and metrics.Returns the backend capabilities.default CmsImageCacheEntryLoads metadata for a single image cache entry.voidStreams all image cache entries to a visitor.
-
Method Details
-
execute
Executes a maintenance request.- Parameters:
request- the request- Returns:
- the maintenance result
- Throws:
Exception- if the request can not be completed
-
getBackendId
Returns the backend identifier used for diagnostics and metrics.- Returns:
- the backend identifier
-
getCapabilities
Returns the backend capabilities.- Returns:
- the backend capabilities
-
getEntry
Loads metadata for a single image cache entry.- Parameters:
key- the image cache key- Returns:
- the entry metadata, or
nullif the entry does not exist - Throws:
Exception- if the metadata can not be loaded
-
visitEntries
Streams all image cache entries to a visitor.- Parameters:
visitor- the entry visitor- Throws:
Exception- if listing fails
-