Package io.helidon.webserver.observe.log
Interface LogStreamConfig
- All Superinterfaces:
Prototype.Api
- All Known Implementing Classes:
LogStreamConfig.BuilderBase.LogStreamConfigImpl
Log stream configuration for Log Observer.
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Fluent API builder forLogStreamConfig
.static class
LogStreamConfig.BuilderBase<BUILDER extends LogStreamConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends LogStreamConfig> Fluent API builder base forLogStreamConfig
. -
Method Summary
Modifier and TypeMethodDescriptionstatic LogStreamConfig.Builder
builder()
Create a new fluent API builder to customize configuration.static LogStreamConfig.Builder
builder
(LogStreamConfig instance) Create a new fluent API builder from an existing instance.static LogStreamConfig
create()
Create a new instance with default values.static LogStreamConfig
Create a new instance from configuration.boolean
enabled()
Whether stream is enabled.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 theidleMessageTimeout()
.int
Length of the in-memory queue that buffers log messages from loggers before sending them over the network.
-
Method Details
-
builder
Create a new fluent API builder to customize configuration.- Returns:
- a new builder
-
builder
Create a new fluent API builder from an existing instance.- Parameters:
instance
- an existing instance used as a base for the builder- Returns:
- a builder based on an instance
-
create
Create a new instance from configuration.- Parameters:
config
- used to configure the new instance- Returns:
- a new instance configured from configuration
-
create
Create a new instance with default values.- Returns:
- a new instance
-
enabled
boolean enabled()Whether stream is enabled.- Returns:
- whether to allow streaming of log statements
-
contentType
HttpMediaType contentType() -
idleMessageTimeout
Duration idleMessageTimeout()How long to wait before we send the idle message, to make sure we keep the stream alive.- Returns:
- if no messages appear within this duration, and idle message will be sent
- See Also:
-
queueSize
int queueSize()Length of the in-memory queue that buffers log messages from loggers before sending them over the network. If the messages are produced faster than we can send them to client, excess messages are DISCARDED, and will not be sent.- Returns:
- size of the in-memory queue for log messages
-
idleString
String idleString()String sent when there are no log messages within theidleMessageTimeout()
.- Returns:
- string to write over the network when no log messages are received
-