Class MemoryCacheConfig.Builder
java.lang.Object
io.helidon.webserver.staticcontent.MemoryCacheConfig.BuilderBase<MemoryCacheConfig.Builder, MemoryCacheConfig>
io.helidon.webserver.staticcontent.MemoryCacheConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<MemoryCacheConfig.Builder, MemoryCacheConfig>, Builder<MemoryCacheConfig.Builder, MemoryCache>, ConfigBuilderSupport.ConfiguredBuilder<MemoryCacheConfig.Builder, MemoryCacheConfig>, Supplier<MemoryCache>
- Enclosing interface:
MemoryCacheConfig
public static class MemoryCacheConfig.Builder
extends MemoryCacheConfig.BuilderBase<MemoryCacheConfig.Builder, MemoryCacheConfig>
implements Builder<MemoryCacheConfig.Builder, MemoryCache>
Fluent API builder for
MemoryCache.-
Nested Class Summary
Nested classes/interfaces inherited from class MemoryCacheConfig.BuilderBase
MemoryCacheConfig.BuilderBase.MemoryCacheConfigImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class MemoryCacheConfig.BuilderBase
capacity, capacity, config, config, enabled, enabled, from, from, preBuildPrototype, toString, validatePrototypeModifier and TypeMethodDescriptioncapacity()Capacity of the cached bytes of file content.Capacity of the cached bytes of file content.config()Configuration used to configure this instance.Update builder from configuration (node of this type).booleanenabled()Whether the cache is enabled, defaults totrue.enabled(boolean enabled) Whether the cache is enabled, defaults totrue.from(MemoryCacheConfig prototype) Update this builder from an existing prototype instance.from(MemoryCacheConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.protected voidHandles providers and decorators.toString()protected voidValidates required properties.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault MemoryCacheget()default MemoryCacheConfig.Builderidentity()Instance of this builder as the correct type.default MemoryCacheConfig.Builderupdate(Consumer<MemoryCacheConfig.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault MemoryCacheConfig.Builderself()Instance of this builder as the correct type.
-
Method Details
-
buildPrototype
Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildPrototypein interfacePrototype.Builder<MemoryCacheConfig.Builder, MemoryCacheConfig>- Returns:
- an instance of the setup object created from this builder
-
build
Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildin interfaceBuilder<MemoryCacheConfig.Builder, MemoryCache>- Returns:
- instance of the built type
-