Class IdempotencyProperties.EvictionProperties

java.lang.Object
io.github.ravocode.avoonce.spring.IdempotencyProperties.EvictionProperties
Enclosing class:
IdempotencyProperties

public static class IdempotencyProperties.EvictionProperties extends Object
Scheduled eviction configuration (avoonce.idempotency.jdbc.eviction.*).
  • 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:
      true when eviction is scheduled
    • setEnabled

      public void setEnabled(boolean enabled)
      Sets whether periodic eviction is enabled.
      Parameters:
      enabled - true to 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