Package com.jalios.jstore
Interface CleanFilter
- All Known Implementing Classes:
CustomCleanFilter,JcmsCleanFilter
public interface CleanFilter
This interface must be implemented to define cleaning rules.
- Since:
- jcms-5.5.0
- Author:
- Olivier Dedieu
-
Method Summary
Modifier and TypeMethodDescriptionvoidcleanMergeMap(Map<String, TreeSet<Stamp>> mergeMap) This method is called to clean the merge map.default longThis method is called to get the first store line to clean.booleanisCleanable(InnerLogEntry entry) Returns true if the entry can be cleaned or false otherwise.booleanisCleanable(StorableLogEntry entry, Class<?> clazz) Returns true if the entry can be cleaned or false otherwise.
-
Method Details
-
isCleanable
Returns true if the entry can be cleaned or false otherwise.- Parameters:
entry- the entry to be checkedclazz- the class of which this entry is applied- Returns:
- true if the entry can be cleaned or false otherwise
- Since:
- jcms-5.5.0
-
isCleanable
Returns true if the entry can be cleaned or false otherwise.- Parameters:
entry- the entry to be checked- Returns:
- true if the entry can be cleaned or false otherwise
- Since:
- jcms-5.5.0
-
cleanMergeMap
This method is called to clean the merge map.- Parameters:
mergeMap- the merge map- Since:
- jcms-5.5.0
-
getStartLine
default long getStartLine()This method is called to get the first store line to clean.- Returns:
- the line to start cleaning
- Since:
- jcms-11.0.1
-