Module org.elasticsearch.server
Interface DataStreamFactoryRetention
public interface DataStreamFactoryRetention
Holds the factory retention configuration. Factory retention is the global retention configuration meant to be
used if a user hasn't provided other retention configuration via
DataStreamGlobalRetention
metadata in the
cluster state.-
Method Summary
Modifier and TypeMethodDescriptionstatic DataStreamFactoryRetention
Returns empty factory global retention settings.void
init
(ClusterSettings clusterSettings) Applies any post constructor initialisation, for example, listening to cluster setting changes.default boolean
static DataStreamFactoryRetention
load
(PluginsService pluginsService, ClusterSettings clusterSettings) Loads a single instance of a DataStreamFactoryRetention from thePluginsService
and finalises the initialisation by callinginit(ClusterSettings)
-
Method Details
-
getMaxRetention
-
getDefaultRetention
-
isDefined
default boolean isDefined()- Returns:
- true, if at least one of the two settings is not null, false otherwise.
-
init
Applies any post constructor initialisation, for example, listening to cluster setting changes. -
load
static DataStreamFactoryRetention load(PluginsService pluginsService, ClusterSettings clusterSettings) Loads a single instance of a DataStreamFactoryRetention from thePluginsService
and finalises the initialisation by callinginit(ClusterSettings)
-
emptyFactoryRetention
Returns empty factory global retention settings.
-