Dataset Time-To-Live (TTL) (Deprecated)
Datasets can have a Time-To-Live (TTL) property that governs how long data will be persisted in a specific dataset. TTL is configured as the maximum age (in seconds) that data should be retained.
When you create a dataset, you can configure its TTL as part of the creation:
public void configure() {
createDataset("myCounters", Table.class,
DatasetProperties.builder().add(Table.PROPERTY_TTL,
"<age in seconds>").build());
...
}
The default TTL for all datasets is infinite, meaning that data will never expire. The TTL property of an existing dataset can be changed using the Dataset Microservices.