#[non_exhaustive]pub struct CheckpointConfiguration {
pub configuration_type: ConfigurationType,
pub checkpointing_enabled: Option<bool>,
pub checkpoint_interval: Option<i64>,
pub min_pause_between_checkpoints: Option<i64>,
}Expand description
Describes an application's checkpointing configuration. Checkpointing is the process of persisting application state for fault tolerance. For more information, see Checkpoints for Fault Tolerance in the Apache Flink Documentation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.configuration_type: ConfigurationTypeDescribes whether the application uses Kinesis Data Analytics' default checkpointing behavior. You must set this property to CUSTOM in order to set the CheckpointingEnabled, CheckpointInterval, or MinPauseBetweenCheckpoints parameters.
If this value is set to DEFAULT, the application will use the following values, even if they are set to other values using APIs or application code:
-
CheckpointingEnabled: true
-
CheckpointInterval: 60000
-
MinPauseBetweenCheckpoints: 5000
checkpointing_enabled: Option<bool>Describes whether checkpointing is enabled for a Flink-based Kinesis Data Analytics application.
If CheckpointConfiguration.ConfigurationType is DEFAULT, the application will use a CheckpointingEnabled value of true, even if this value is set to another value using this API or in application code.
checkpoint_interval: Option<i64>Describes the interval in milliseconds between checkpoint operations.
If CheckpointConfiguration.ConfigurationType is DEFAULT, the application will use a CheckpointInterval value of 60000, even if this value is set to another value using this API or in application code.
min_pause_between_checkpoints: Option<i64>Describes the minimum time in milliseconds after a checkpoint operation completes that a new checkpoint operation can start. If a checkpoint operation takes longer than the CheckpointInterval, the application otherwise performs continual checkpoint operations. For more information, see Tuning Checkpointing in the Apache Flink Documentation.
If CheckpointConfiguration.ConfigurationType is DEFAULT, the application will use a MinPauseBetweenCheckpoints value of 5000, even if this value is set using this API or in application code.
Implementations§
source§impl CheckpointConfiguration
impl CheckpointConfiguration
sourcepub fn configuration_type(&self) -> &ConfigurationType
pub fn configuration_type(&self) -> &ConfigurationType
Describes whether the application uses Kinesis Data Analytics' default checkpointing behavior. You must set this property to CUSTOM in order to set the CheckpointingEnabled, CheckpointInterval, or MinPauseBetweenCheckpoints parameters.
If this value is set to DEFAULT, the application will use the following values, even if they are set to other values using APIs or application code:
-
CheckpointingEnabled: true
-
CheckpointInterval: 60000
-
MinPauseBetweenCheckpoints: 5000
sourcepub fn checkpointing_enabled(&self) -> Option<bool>
pub fn checkpointing_enabled(&self) -> Option<bool>
Describes whether checkpointing is enabled for a Flink-based Kinesis Data Analytics application.
If CheckpointConfiguration.ConfigurationType is DEFAULT, the application will use a CheckpointingEnabled value of true, even if this value is set to another value using this API or in application code.
sourcepub fn checkpoint_interval(&self) -> Option<i64>
pub fn checkpoint_interval(&self) -> Option<i64>
Describes the interval in milliseconds between checkpoint operations.
If CheckpointConfiguration.ConfigurationType is DEFAULT, the application will use a CheckpointInterval value of 60000, even if this value is set to another value using this API or in application code.
sourcepub fn min_pause_between_checkpoints(&self) -> Option<i64>
pub fn min_pause_between_checkpoints(&self) -> Option<i64>
Describes the minimum time in milliseconds after a checkpoint operation completes that a new checkpoint operation can start. If a checkpoint operation takes longer than the CheckpointInterval, the application otherwise performs continual checkpoint operations. For more information, see Tuning Checkpointing in the Apache Flink Documentation.
If CheckpointConfiguration.ConfigurationType is DEFAULT, the application will use a MinPauseBetweenCheckpoints value of 5000, even if this value is set using this API or in application code.
source§impl CheckpointConfiguration
impl CheckpointConfiguration
sourcepub fn builder() -> CheckpointConfigurationBuilder
pub fn builder() -> CheckpointConfigurationBuilder
Creates a new builder-style object to manufacture CheckpointConfiguration.
Trait Implementations§
source§impl Clone for CheckpointConfiguration
impl Clone for CheckpointConfiguration
source§fn clone(&self) -> CheckpointConfiguration
fn clone(&self) -> CheckpointConfiguration
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CheckpointConfiguration
impl Debug for CheckpointConfiguration
source§impl PartialEq for CheckpointConfiguration
impl PartialEq for CheckpointConfiguration
source§fn eq(&self, other: &CheckpointConfiguration) -> bool
fn eq(&self, other: &CheckpointConfiguration) -> bool
self and other values to be equal, and is used
by ==.