Interface CleanupPolicy
-
public interface CleanupPolicyConfigures the cleanup policy of the local build cache.The specified values will take precedence over the values defined in the
develocity.xml.- Since:
- 1.21
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.time.DurationgetCleanupInterval()Gets the local build cache cleanup interval.java.time.DurationgetRetentionPeriod()Gets the local build cache retention period.booleanisEnabled()Gets whether the local build cache cleanup is enabled.voidsetCleanupInterval(java.time.Duration cleanupInterval)Sets the local build cache cleanup interval.voidsetEnabled(boolean enabled)Sets whether to enable the local build cache cleanup.voidsetRetentionPeriod(java.time.Duration retentionPeriod)Sets the local build cache cleanup retention period.
-
-
-
Method Detail
-
isEnabled
boolean isEnabled()
Gets whether the local build cache cleanup is enabled.- Returns:
trueif the local build cache cleanup is enabled,falseotherwise
-
setEnabled
void setEnabled(boolean enabled)
Sets whether to enable the local build cache cleanup.Configuration via the
develocity.cache.local.cleanup.enabledsystem property will always take precedence.- Parameters:
enabled- whether to enable the local build cache cleanup
-
getRetentionPeriod
java.time.Duration getRetentionPeriod()
Gets the local build cache retention period.- Returns:
- the local build cache cleanup retention period
-
setRetentionPeriod
void setRetentionPeriod(java.time.Duration retentionPeriod)
Sets the local build cache cleanup retention period.Configuration via the
develocity.cache.local.cleanup.retentionsystem property will always take precedence.- Parameters:
retentionPeriod- the local build cache cleanup retention period
-
getCleanupInterval
java.time.Duration getCleanupInterval()
Gets the local build cache cleanup interval.- Returns:
- the local build cache cleanup interval
-
setCleanupInterval
void setCleanupInterval(java.time.Duration cleanupInterval)
Sets the local build cache cleanup interval.Configuration via the
develocity.cache.local.cleanup.intervalsystem property will always take precedence.- Parameters:
cleanupInterval- the local build cache cleanup interval
-
-