Class CracRedisConfigurationProperties

java.lang.Object
io.micronaut.crac.resources.redis.CracRedisConfigurationProperties
All Implemented Interfaces:
io.micronaut.core.util.Toggleable, CracRedisConfiguration

@ConfigurationProperties("crac.redis") public class CracRedisConfigurationProperties extends Object implements CracRedisConfiguration
Configuration for Redis CRaC support. Enabled by default.
Since:
1.2.0
Author:
Tim Yates
  • Field Details

  • Constructor Details

    • CracRedisConfigurationProperties

      public CracRedisConfigurationProperties()
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface io.micronaut.core.util.Toggleable
      Returns:
      Whether CRaC support for Redis is enabled.
    • setEnabled

      public void setEnabled(boolean enabled)
      Whether CRaC (Coordinated Restore at Checkpoint) support for Redis, even if we're on a supporting JDK, is enabled. Default value (true).
      Parameters:
      enabled - false if CRaC support for redis should be disabled
    • isCacheEnabled

      public boolean isCacheEnabled()
      Specified by:
      isCacheEnabled in interface CracRedisConfiguration
      Returns:
      Whether to destroy RedisCache beans prior to taking a checkpoint.
    • setCacheEnabled

      public void setCacheEnabled(boolean cacheEnabled)
      Whether to destroy RedisCache beans prior to taking a checkpoint. Default value (true).
      Parameters:
      cacheEnabled - Whether to destroy RedisCache beans prior to taking a checkpoint.
    • isClientEnabled

      public boolean isClientEnabled()
      Specified by:
      isClientEnabled in interface CracRedisConfiguration
      Returns:
      Whether to destroy RedisCache beans prior to taking a checkpoint.
    • setClientEnabled

      public void setClientEnabled(boolean clientEnabled)
      Whether to destroy RedisClient beans prior to taking a checkpoint. Default value (true).
      Parameters:
      clientEnabled - Whether to destroy RedisClient beans prior to taking a checkpoint.
    • isConnectionEnabled

      public boolean isConnectionEnabled()
      Specified by:
      isConnectionEnabled in interface CracRedisConfiguration
      Returns:
      Whether to destroy StatefulRedisConnection beans prior to taking a checkpoint.
    • setConnectionEnabled

      public void setConnectionEnabled(boolean connectionEnabled)
      Whether to destroy StatefulRedisConnection beans prior to taking a checkpoint. Default value (true).
      Parameters:
      connectionEnabled - Whether to destroy StatefulRedisConnection beans prior to taking a checkpoint.