Module io.helidon.config
Package io.helidon.config.spi
Interface Source.Builder<B extends Source.Builder<B>>
-
- Type Parameters:
B- type implementation class of this interface
- All Known Subinterfaces:
ParsableSource.Builder<B>
- All Known Implementing Classes:
AbstractConfigSourceBuilder,AbstractSourceBuilder,ClasspathConfigSource.Builder,ClasspathOverrideSource.Builder,ConfigSources.SystemPropertiesConfigSource.Builder,DirectoryConfigSource.Builder,EtcdConfigSourceBuilder,FileConfigSource.Builder,FileOverrideSource.Builder,GitConfigSourceBuilder,MapConfigSource.Builder,MapConfigSource.MapBuilder,UrlConfigSource.Builder,UrlOverrideSource.Builder
- Enclosing interface:
- Source
public static interface Source.Builder<B extends Source.Builder<B>>Configurable options of aSource.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Boptional()Configure this source to be optional.Boptional(boolean optional)Whether the source is optional or not.BretryPolicy(Supplier<? extends RetryPolicy> policy)Configure a retry policy to be used with this source.
-
-
-
Method Detail
-
retryPolicy
B retryPolicy(Supplier<? extends RetryPolicy> policy)
Configure a retry policy to be used with this source. If none is configured, the source is invoked directly with no retries.- Parameters:
policy- retry policy to use- Returns:
- updated builder instance
-
optional
B optional(boolean optional)
Whether the source is optional or not. When configured to be optional, missing underlying data do not cause an exception to be raised.- Parameters:
optional-truewhen this source should be optional- Returns:
- updated builder instance
-
optional
default B optional()
Configure this source to be optional.Same as calling
optional(true).- Returns:
- updated builder instance
-
-