@ConfigurationProperties(value="crac") public class CracConfigurationProperties extends java.lang.Object implements CracConfiguration
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_DATASOURCE_PAUSE_TIMEOUT |
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 |
---|---|
java.time.Duration |
getDatasourcePauseTimeout() |
boolean |
isEnabled() |
boolean |
isRefreshBeans() |
void |
setDatasourcePauseTimeout(java.time.Duration datasourcePauseTimeout)
The timeout to wait for a datasource to pause before taking a checkpoint.
|
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 static final java.lang.String DEFAULT_DATASOURCE_PAUSE_TIMEOUT
public boolean isEnabled()
isEnabled
in interface io.micronaut.core.util.Toggleable
public void setEnabled(boolean enabled)
enabled
- override CRaC if requiredpublic boolean isRefreshBeans()
isRefreshBeans
in interface CracConfiguration
public 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.@NonNull public java.time.Duration getDatasourcePauseTimeout()
getDatasourcePauseTimeout
in interface CracConfiguration
public void setDatasourcePauseTimeout(java.time.Duration datasourcePauseTimeout)
datasourcePauseTimeout
- The timeout to wait for a datasource to pause before taking a checkpoint.