@ConfigurationProperties(value="crac") public class CracConfigurationProperties extends java.lang.Object implements CracConfiguration
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_ENABLED
The default enable value.
|
static boolean |
DEFAULT_REFRESH |
static java.lang.String |
PREFIX
The prefix to use for CRaC configuration.
|
| Constructor and Description |
|---|
CracConfigurationProperties() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEnabled() |
boolean |
isRefreshBeans() |
void |
setEnabled(boolean enabled)
Whether CRaC (Coordinated Restore at Checkpoint) support, even if we're on a supporting JDK, is enabled.
|
void |
setRefreshBeans(boolean refreshBeans)
Whether to trigger a refresh event to refresh all
Refreshable beans prior to taking a checkpoint. |
public static final java.lang.String PREFIX
public static final boolean DEFAULT_ENABLED
public static final boolean DEFAULT_REFRESH
public boolean isEnabled()
isEnabled in interface io.micronaut.core.util.Toggleablepublic void setEnabled(boolean enabled)
enabled - override CRaC if requiredpublic boolean isRefreshBeans()
isRefreshBeans in interface CracConfigurationpublic void setRefreshBeans(boolean refreshBeans)
Refreshable beans prior to taking a checkpoint. Default value (true).refreshBeans - Whether to trigger a refresh event prior to taking a checkpoint.