Package io.quarkus.registry.config
Interface RegistryQuarkusVersionsConfig
-
- All Known Subinterfaces:
RegistryQuarkusVersionsConfig.Mutable
- All Known Implementing Classes:
RegistryQuarkusVersionsConfigImpl,RegistryQuarkusVersionsConfigImpl.Builder
public interface RegistryQuarkusVersionsConfigA registry may be configured to accept requests only for the Quarkus versions it recognizes. This may avoid unnecessary remote registry requests from the client.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceRegistryQuarkusVersionsConfig.Mutable
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static RegistryQuarkusVersionsConfig.Mutablebuilder()Collection<String>getRecognizedGroupIds()StringgetRecognizedVersionsExpression()An expression that will be evaluated on the client side before sending a request to the registry that will indicate whether the registry recognizes a given Quarkus version or not.booleanisExclusiveProvider()If the Quarkus version expression is provided, this method may also enforce that Quarkus versions matching the provided expressions are expected to be provided by this registry exclusively.default RegistryQuarkusVersionsConfig.Mutablemutable()
-
-
-
Method Detail
-
getRecognizedVersionsExpression
String getRecognizedVersionsExpression()
An expression that will be evaluated on the client side before sending a request to the registry that will indicate whether the registry recognizes a given Quarkus version or not.- Returns:
- Quarkus version filtering expression or null
-
getRecognizedGroupIds
Collection<String> getRecognizedGroupIds()
-
isExclusiveProvider
boolean isExclusiveProvider()
If the Quarkus version expression is provided, this method may also enforce that Quarkus versions matching the provided expressions are expected to be provided by this registry exclusively. This may further reduce the amount of the remote requests a client will be sending in case multiple registries have been configured.- Returns:
- whether the registry is an exclusive provider of the Quarkus versions matching
the expression configured in
getRecognizedVersionsExpression()
-
mutable
default RegistryQuarkusVersionsConfig.Mutable mutable()
- Returns:
- a mutable copy of this configuration
-
builder
static RegistryQuarkusVersionsConfig.Mutable builder()
- Returns:
- a new mutable instance
-
-