Class HouseKeepingServiceConfigProperties

java.lang.Object
ch.admin.bit.jeap.errorhandling.domain.housekeeping.HouseKeepingServiceConfigProperties

@Configuration @ConfigurationProperties(prefix="jeap.errorhandling.housekeeping") public class HouseKeepingServiceConfigProperties extends Object
Configuration for the automatic housekeeping service (Db clean up)
  • Constructor Details

    • HouseKeepingServiceConfigProperties

      public HouseKeepingServiceConfigProperties()
  • Method Details

    • getErrorMaxAge

      public Duration getErrorMaxAge()
      Delete errors older than this value [duration]. Default is 180 days
    • getPageSize

      public int getPageSize()
      Size for the queries [pages]. Default is 100
    • getMaxPages

      public int getMaxPages()
      Max. pages to housekeep in one run. This limits the amount of time one housekeeping run can max. spend (the time to delete maxPages * pageSize elements of each kind).
    • setErrorMaxAge

      public void setErrorMaxAge(Duration errorMaxAge)
      Delete errors older than this value [duration]. Default is 180 days
    • setPageSize

      public void setPageSize(int pageSize)
      Size for the queries [pages]. Default is 100
    • setMaxPages

      public void setMaxPages(int maxPages)
      Max. pages to housekeep in one run. This limits the amount of time one housekeeping run can max. spend (the time to delete maxPages * pageSize elements of each kind).
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object