Class PersistenceServiceConfiguration
java.lang.Object
org.openhab.core.persistence.registry.PersistenceServiceConfiguration
- All Implemented Interfaces:
Identifiable<String>
@NonNullByDefault
public class PersistenceServiceConfiguration
extends Object
implements Identifiable<String>
The
PersistenceServiceConfiguration
represents the configuration for a persistence service.- Author:
- Jan N. Klug - Initial contribution
-
Constructor Summary
ConstructorDescriptionPersistenceServiceConfiguration
(String serviceId, Collection<PersistenceItemConfiguration> configs, Collection<PersistenceStrategy> defaults, Collection<PersistenceStrategy> strategies, Collection<PersistenceFilter> filters) -
Method Summary
Modifier and TypeMethodDescriptionGet the item configurations.Get the default strategies.Get all defined filters.Get all defined strategies.getUID()
Get the unique identifier.
-
Constructor Details
-
PersistenceServiceConfiguration
public PersistenceServiceConfiguration(String serviceId, Collection<PersistenceItemConfiguration> configs, Collection<PersistenceStrategy> defaults, Collection<PersistenceStrategy> strategies, Collection<PersistenceFilter> filters)
-
-
Method Details
-
getUID
Description copied from interface:Identifiable
Get the unique identifier.- Specified by:
getUID
in interfaceIdentifiable<String>
- Returns:
- the unique identifier
-
getConfigs
Get the item configurations.- Returns:
- an unmodifiable list of the item configurations
-
getDefaults
Get the default strategies.- Returns:
- an unmodifiable list of the default strategies
-
getStrategies
Get all defined strategies.- Returns:
- an unmodifiable list of the defined strategies
-
getFilters
Get all defined filters.- Returns:
- an unmodifiable list of the defined filters
-