Module io.inverno.mod.configuration
Class VersionedRedisConfigurationSource.VersionedRedisExecutableConfigurationQuery
java.lang.Object
io.inverno.mod.configuration.source.VersionedRedisConfigurationSource.VersionedRedisExecutableConfigurationQuery
- All Implemented Interfaces:
ExecutableConfigurationQuery<VersionedRedisConfigurationSource.VersionedRedisConfigurationQuery,
VersionedRedisConfigurationSource.VersionedRedisExecutableConfigurationQuery>
- Enclosing class:
VersionedRedisConfigurationSource
public static class VersionedRedisConfigurationSource.VersionedRedisExecutableConfigurationQuery
extends Object
implements ExecutableConfigurationQuery<VersionedRedisConfigurationSource.VersionedRedisConfigurationQuery,VersionedRedisConfigurationSource.VersionedRedisExecutableConfigurationQuery>
The executable configuration query used by the Redis configuration source.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionand()
Chains another query.atRevision
(int revision) Specifies the revision (inclusive) up to which properties should be searched.execute()
Executes the chain of configuration queries.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.ExecutableConfigurationQuery
withParameters, withParameters, withParameters, withParameters, withParameters, withParameters, withParameters, withParameters, withParameters, withParameters, withParameters
-
Method Details
-
and
Description copied from interface:ExecutableConfigurationQuery
Chains another query.
- Specified by:
and
in interfaceExecutableConfigurationQuery<VersionedRedisConfigurationSource.VersionedRedisConfigurationQuery,
VersionedRedisConfigurationSource.VersionedRedisExecutableConfigurationQuery> - Returns:
- a configuration query
-
withParameters
public VersionedRedisConfigurationSource.VersionedRedisExecutableConfigurationQuery withParameters(List<ConfigurationKey.Parameter> parameters) throws IllegalArgumentException Description copied from interface:ExecutableConfigurationQuery
Defines parameters that specify the context in which configuration properties are to be retrieved.
- Specified by:
withParameters
in interfaceExecutableConfigurationQuery<VersionedRedisConfigurationSource.VersionedRedisConfigurationQuery,
VersionedRedisConfigurationSource.VersionedRedisExecutableConfigurationQuery> - Parameters:
parameters
- a list of parameters- Returns:
- the executable configuration query
- Throws:
IllegalArgumentException
- if parameters were specified more than once
-
atRevision
public VersionedRedisConfigurationSource.VersionedRedisExecutableConfigurationQuery atRevision(int revision) throws IllegalArgumentException Specifies the revision (inclusive) up to which properties should be searched.
- Parameters:
revision
- a revision- Returns:
- the executable configuration query
- Throws:
IllegalArgumentException
- if the revision is invalid
-
execute
Description copied from interface:ExecutableConfigurationQuery
Executes the chain of configuration queries.
Results are emitted in the same order as the queries.
- Specified by:
execute
in interfaceExecutableConfigurationQuery<VersionedRedisConfigurationSource.VersionedRedisConfigurationQuery,
VersionedRedisConfigurationSource.VersionedRedisExecutableConfigurationQuery> - Returns:
- a stream of configuration query results
-