| std::optional<int> DataStorm::Config::sampleLifetime |
The sampleLifetime configuration specifies samples to keep in the writer or reader history based on their age.
Samples with a timestamp older than the sampleLifetime value (in milliseconds) are discarded from the history. 0 or a negative value means samples are kept for an unlimited amount of time. nullopt is equivalent to the topic's default sample lifetime: the value of the DataStorm.Topic.SampleLifetime property (0 by default), unless replaced with Topic::setReaderDefaultConfig or Topic::setWriterDefaultConfig.