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 Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanstatic final booleanstatic final booleanstatic final booleanstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanbooleanvoidsetCacheEnabled(boolean cacheEnabled) Whether to destroy RedisCache beans prior to taking a checkpoint.voidsetClientEnabled(boolean clientEnabled) Whether to destroy RedisClient beans prior to taking a checkpoint.voidsetConnectionEnabled(boolean connectionEnabled) Whether to destroy StatefulRedisConnection beans prior to taking a checkpoint.voidsetEnabled(boolean enabled) Whether CRaC (Coordinated Restore at Checkpoint) support for Redis, even if we're on a supporting JDK, is enabled.
-
Field Details
-
PREFIX
- See Also:
-
DEFAULT_ENABLED
public static final boolean DEFAULT_ENABLED- See Also:
-
DEFAULT_CACHE_ENABLED
public static final boolean DEFAULT_CACHE_ENABLED- See Also:
-
DEFAULT_CLIENT_ENABLED
public static final boolean DEFAULT_CLIENT_ENABLED- See Also:
-
DEFAULT_CONNECTION_ENABLED
public static final boolean DEFAULT_CONNECTION_ENABLED- See Also:
-
-
Constructor Details
-
CracRedisConfigurationProperties
public CracRedisConfigurationProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceio.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:
isCacheEnabledin interfaceCracRedisConfiguration- 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:
isClientEnabledin interfaceCracRedisConfiguration- 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:
isConnectionEnabledin interfaceCracRedisConfiguration- 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.
-