Class IdempotencyProperties.EvictionProperties
java.lang.Object
io.github.ravocode.avoonce.spring.IdempotencyProperties.EvictionProperties
- Enclosing class:
IdempotencyProperties
Scheduled eviction configuration (
avoonce.idempotency.jdbc.eviction.*).-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new eviction properties instance with default values. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the interval between eviction runs in milliseconds.booleanReturns whether periodic eviction is enabled.voidsetEnabled(boolean enabled) Sets whether periodic eviction is enabled.voidsetIntervalMs(long intervalMs) Sets the interval between eviction runs in milliseconds.
-
Constructor Details
-
EvictionProperties
public EvictionProperties()Creates a new eviction properties instance with default values.
-
-
Method Details
-
isEnabled
public boolean isEnabled()Returns whether periodic eviction is enabled.- Returns:
truewhen eviction is scheduled
-
setEnabled
public void setEnabled(boolean enabled) Sets whether periodic eviction is enabled.- Parameters:
enabled-trueto enable periodic eviction
-
getIntervalMs
public long getIntervalMs()Returns the interval between eviction runs in milliseconds.- Returns:
- the eviction interval in milliseconds
-
setIntervalMs
public void setIntervalMs(long intervalMs) Sets the interval between eviction runs in milliseconds.- Parameters:
intervalMs- the interval in milliseconds
-