Module io.inverno.mod.configuration
Class RedisConfigurationSource.RedisListConfigurationQuery
java.lang.Object
io.inverno.mod.configuration.source.RedisConfigurationSource.RedisListConfigurationQuery
- All Implemented Interfaces:
ListConfigurationQuery<RedisConfigurationSource.RedisListConfigurationQuery>
- Enclosing class:
RedisConfigurationSource
public static class RedisConfigurationSource.RedisListConfigurationQuery
extends Object
implements ListConfigurationQuery<RedisConfigurationSource.RedisListConfigurationQuery>
The list configuration query used by the Redis configuration source.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
-
Method Summary
Modifier and TypeMethodDescriptionexecute()
Lists all properties with the specified property name and whose parameters exactly match the query.Lists all properties with the specified property name and whose parameters match the query.withParameters
(List<ConfigurationKey.Parameter> parameters) Defines parameters that specify the context in which configuration properties are to be retrieved.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.inverno.mod.configuration.ListConfigurationQuery
withParameters, withParameters, withParameters, withParameters, withParameters, withParameters, withParameters, withParameters, withParameters, withParameters, withParameters
-
Method Details
-
withParameters
public RedisConfigurationSource.RedisListConfigurationQuery withParameters(List<ConfigurationKey.Parameter> parameters) throws IllegalArgumentException Description copied from interface:ListConfigurationQuery
Defines parameters that specify the context in which configuration properties are to be retrieved.
- Specified by:
withParameters
in interfaceListConfigurationQuery<RedisConfigurationSource.RedisListConfigurationQuery>
- Parameters:
parameters
- a list of parameters- Returns:
- the configuration query
- Throws:
IllegalArgumentException
- if parameters were specified more than once
-
execute
Description copied from interface:ListConfigurationQuery
Lists all properties with the specified property name and whose parameters exactly match the query.
This method returns properties whose parameters exactly match the parameters specified in the query and exclude those defined with extra parameters.
- Specified by:
execute
in interfaceListConfigurationQuery<RedisConfigurationSource.RedisListConfigurationQuery>
- Returns:
- a stream of configuration properties
-
executeAll
Description copied from interface:ListConfigurationQuery
Lists all properties with the specified property name and whose parameters match the query.
This method returns all properties whose parameters match the parameters specified in the query without excluding those defined with extra parameters.
- Specified by:
executeAll
in interfaceListConfigurationQuery<RedisConfigurationSource.RedisListConfigurationQuery>
- Returns:
- a stream of configuration properties
-