Package io.quarkus.registry.config
Class RegistryConfigImpl.Builder
java.lang.Object
io.quarkus.registry.config.RegistryConfigImpl.Builder
- All Implemented Interfaces:
RegistryConfig,RegistryConfig.Mutable,JsonBuilder<RegistryConfig>
- Enclosing class:
RegistryConfigImpl
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.quarkus.registry.json.JsonBuilder
JsonBuilder.JsonBuilderSerializer<T>Nested classes/interfaces inherited from interface io.quarkus.registry.config.RegistryConfig
RegistryConfig.Mutable -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected RegistryDescriptorConfigprotected booleanprotected Stringprotected RegistryMavenConfigprotected RegistryNonPlatformExtensionsConfigprotected RegistryPlatformsConfigprotected Stringprotected RegistryQuarkusVersionsConfig -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()<V> VcomputeExtraIfAbsent(String name, Function<String, ? extends V> func) How to get the descriptor from the registry.getExtra()Custom registry client configuration.getId()Registry ID.getMaven()Registry client Maven related configuration, such as repository URL, etc.How to get catalogs of non-platform extensions from the registry.How get platform catalogs from the registry.Registry specific Quarkus version filtering configuration.How often (if ever) the locally cached catalogs provided by the registry should be refreshed.booleanWhether this registry should be included in the active registry list.setDescriptor(RegistryDescriptorConfig descriptor) setEnabled(boolean enabled) setMaven(RegistryMavenConfig mavenConfig) setNonPlatformExtensions(RegistryNonPlatformExtensionsConfig nonPlatformExtensions) setPlatforms(RegistryPlatformsConfig platforms) setQuarkusVersions(RegistryQuarkusVersionsConfig versionsConfig) setUpdatePolicy(String updatePolicy) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.registry.config.RegistryConfig
mutableMethods inherited from interface io.quarkus.registry.config.RegistryConfig.Mutable
persist, setAny
-
Field Details
-
id
-
enabled
protected boolean enabled -
updatePolicy
-
descriptor
-
platforms
-
nonPlatformExtensions
-
mavenConfig
-
versionsConfig
-
extra
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
getId
Description copied from interface:RegistryConfigRegistry ID. Mainly used in the logging and error messages to refer to a specific registry.- Specified by:
getIdin interfaceRegistryConfig- Returns:
- registry id, never null
-
setId
- Specified by:
setIdin interfaceRegistryConfig.Mutable
-
isEnabled
public boolean isEnabled()Description copied from interface:RegistryConfigWhether this registry should be included in the active registry list. If the registry is disabled the client won't be sending any requests to it.- Specified by:
isEnabledin interfaceRegistryConfig- Returns:
- true, if the registry is enabled, otherwise - false
-
setEnabled
- Specified by:
setEnabledin interfaceRegistryConfig.Mutable
-
getUpdatePolicy
Description copied from interface:RegistryConfigHow often (if ever) the locally cached catalogs provided by the registry should be refreshed. The value returned by the method should currently bealways,daily(default),interval:XXX(in minutes) ornever(only if it doesn't exist locally).- Specified by:
getUpdatePolicyin interfaceRegistryConfig- Returns:
- update policy
-
setUpdatePolicy
- Specified by:
setUpdatePolicyin interfaceRegistryConfig.Mutable
-
getDescriptor
Description copied from interface:RegistryConfigHow to get the descriptor from the registry. A registry descriptor is the default client configuration for the registry that can be customized on the client side, if necessary.- Specified by:
getDescriptorin interfaceRegistryConfig- Returns:
- registry descriptor related configuration
-
setDescriptor
- Specified by:
setDescriptorin interfaceRegistryConfig.Mutable
-
getPlatforms
Description copied from interface:RegistryConfigHow get platform catalogs from the registry.- Specified by:
getPlatformsin interfaceRegistryConfig- Returns:
- platform catalog related configuration
-
setPlatforms
- Specified by:
setPlatformsin interfaceRegistryConfig.Mutable
-
getNonPlatformExtensions
Description copied from interface:RegistryConfigHow to get catalogs of non-platform extensions from the registry.- Specified by:
getNonPlatformExtensionsin interfaceRegistryConfig- Returns:
- non-platform extension catalog related configuration
-
setNonPlatformExtensions
public RegistryConfigImpl.Builder setNonPlatformExtensions(RegistryNonPlatformExtensionsConfig nonPlatformExtensions) - Specified by:
setNonPlatformExtensionsin interfaceRegistryConfig.Mutable
-
getMaven
Description copied from interface:RegistryConfigRegistry client Maven related configuration, such as repository URL, etc.- Specified by:
getMavenin interfaceRegistryConfig- Returns:
- registry client Maven related configuration
-
setMaven
- Specified by:
setMavenin interfaceRegistryConfig.Mutable
-
getQuarkusVersions
Description copied from interface:RegistryConfigRegistry specific Quarkus version filtering configuration. For example, a given registry may provide platform and extension information that are based on specific versions of Quarkus core. Properly configured configured may reduce the amount of unnecessary remote registry requests.- Specified by:
getQuarkusVersionsin interfaceRegistryConfig- Returns:
- Quarkus version filtering configuration
-
setQuarkusVersions
- Specified by:
setQuarkusVersionsin interfaceRegistryConfig.Mutable
-
getExtra
Description copied from interface:RegistryConfigCustom registry client configuration.- Specified by:
getExtrain interfaceRegistryConfig- Returns:
- custom registry client configuration
-
setExtra
- Specified by:
setExtrain interfaceRegistryConfig.Mutable
-
setExtra
- Specified by:
setExtrain interfaceRegistryConfig.Mutable
-
computeExtraIfAbsent
-
build
- Specified by:
buildin interfaceJsonBuilder<RegistryConfig>- Specified by:
buildin interfaceRegistryConfig.Mutable- Returns:
- an immutable copy of this configuration
-