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
Modifier and TypeFieldDescriptionstatic final boolean
static final boolean
static final boolean
static final boolean
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
void
setCacheEnabled
(boolean cacheEnabled) Whether to destroy RedisCache beans prior to taking a checkpoint.void
setClientEnabled
(boolean clientEnabled) Whether to destroy RedisClient beans prior to taking a checkpoint.void
setConnectionEnabled
(boolean connectionEnabled) Whether to destroy StatefulRedisConnection beans prior to taking a checkpoint.void
setEnabled
(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:
isEnabled
in 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:
isCacheEnabled
in 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:
isClientEnabled
in 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:
isConnectionEnabled
in 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.
-