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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanDelete errors older than this value [duration].intMax. pages to housekeep in one run.intSize for the queries [pages].inthashCode()voidsetErrorMaxAge(Duration errorMaxAge) Delete errors older than this value [duration].voidsetMaxPages(int maxPages) Max. pages to housekeep in one run.voidsetPageSize(int pageSize) Size for the queries [pages].toString()
-
Constructor Details
-
HouseKeepingServiceConfigProperties
public HouseKeepingServiceConfigProperties()
-
-
Method Details
-
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
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
-
canEqual
-
hashCode
public int hashCode() -
toString
-