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 Type
    Method
    Description
    void
    This method is called to clean the merge map.
    default long
    This method is called to get the first store line to clean.
    boolean
    Returns true if the entry can be cleaned or false otherwise.
    boolean
    Returns true if the entry can be cleaned or false otherwise.
  • Method Details

    • isCleanable

      boolean isCleanable(StorableLogEntry entry, Class<?> clazz)
      Returns true if the entry can be cleaned or false otherwise.
      Parameters:
      entry - the entry to be checked
      clazz - 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

      boolean isCleanable(InnerLogEntry entry)
      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

      void cleanMergeMap(Map<String,TreeSet<Stamp>> mergeMap)
      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