Class LogStreamConfig.Builder
java.lang.Object
io.helidon.webserver.observe.log.LogStreamConfig.BuilderBase<LogStreamConfig.Builder, LogStreamConfig>
io.helidon.webserver.observe.log.LogStreamConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<LogStreamConfig.Builder, LogStreamConfig>, Builder<LogStreamConfig.Builder, LogStreamConfig>, ConfigBuilderSupport.ConfiguredBuilder<LogStreamConfig.Builder, LogStreamConfig>, Supplier<LogStreamConfig>
- Enclosing interface:
LogStreamConfig
public static class LogStreamConfig.Builder
extends LogStreamConfig.BuilderBase<LogStreamConfig.Builder, LogStreamConfig>
implements Builder<LogStreamConfig.Builder, LogStreamConfig>
Fluent API builder for
LogStreamConfig.-
Nested Class Summary
Nested classes/interfaces inherited from class LogStreamConfig.BuilderBase
LogStreamConfig.BuilderBase.LogStreamConfigImplModifier 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 LogStreamConfig.BuilderBase
config, config, contentType, contentType, contentType, contentType, enabled, enabled, from, from, idleMessageTimeout, idleMessageTimeout, idleString, idleString, preBuildPrototype, queueSize, queueSize, toString, validatePrototypeModifier and TypeMethodDescriptionconfig()Configuration used to configure this instance.Update builder from configuration (node of this type).ContentType option.contentType(HttpMediaType contentType) ContentType option.contentType(Consumer<HttpMediaType.Builder> consumer) ContentType option.contentType(Supplier<? extends HttpMediaType> supplier) ContentType option.booleanenabled()Whether stream is enabled.enabled(boolean enabled) Whether stream is enabled.from(LogStreamConfig prototype) Update this builder from an existing prototype instance.from(LogStreamConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.How long to wait before we send the idle message, to make sure we keep the stream alive.idleMessageTimeout(Duration idleMessageTimeout) How long to wait before we send the idle message, to make sure we keep the stream alive.String sent when there are no log messages within theLogStreamConfig.BuilderBase.idleMessageTimeout().idleString(String idleString) String sent when there are no log messages within theLogStreamConfig.BuilderBase.idleMessageTimeout().protected voidHandles providers and decorators.intLength of the in-memory queue that buffers log messages from loggers before sending them over the network.queueSize(int queueSize) Length of the in-memory queue that buffers log messages from loggers before sending them over the network.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 LogStreamConfigget()default LogStreamConfig.Builderidentity()Instance of this builder as the correct type.default LogStreamConfig.Builderupdate(Consumer<LogStreamConfig.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault LogStreamConfig.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<LogStreamConfig.Builder, LogStreamConfig>- 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<LogStreamConfig.Builder, LogStreamConfig>- Returns:
- instance of the built type
-