Module org.elasticsearch.server
Class DataStreamGlobalRetentionSettings
java.lang.Object
org.elasticsearch.cluster.metadata.DataStreamGlobalRetentionSettings
This class holds the data stream global retention settings. It defines, validates and monitors the settings.
The global retention settings apply to non-system data streams that are managed by the data stream lifecycle. They consist of: - The default retention which applies to data streams that do not have a retention defined. - The max retention which applies to all data streams that do not have retention or their retention has exceeded this value.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionboolean
create
(ClusterSettings clusterSettings) Creates an instance and initialises the cluster settings listenersget()
-
Field Details
-
MIN_RETENTION_VALUE
-
DATA_STREAMS_DEFAULT_RETENTION_SETTING
-
DATA_STREAMS_MAX_RETENTION_SETTING
-
-
Method Details
-
getMaxRetention
-
getDefaultRetention
-
areDefined
public boolean areDefined() -
create
Creates an instance and initialises the cluster settings listeners- Parameters:
clusterSettings
- it will register the cluster settings listeners to monitor for changes
-
get
-