Package io.helidon.webserver.observe.log
Class LogStreamConfig.BuilderBase.LogStreamConfigImpl
java.lang.Object
io.helidon.webserver.observe.log.LogStreamConfig.BuilderBase.LogStreamConfigImpl
- All Implemented Interfaces:
Prototype.Api
,LogStreamConfig
- Enclosing class:
LogStreamConfig.BuilderBase<BUILDER extends LogStreamConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends LogStreamConfig>
protected static class LogStreamConfig.BuilderBase.LogStreamConfigImpl
extends Object
implements LogStreamConfig
Generated implementation of the prototype, can be extended by descendant prototype implementations.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.webserver.observe.log.LogStreamConfig
LogStreamConfig.Builder, LogStreamConfig.BuilderBase<BUILDER extends LogStreamConfig.BuilderBase<BUILDER,
PROTOTYPE>, PROTOTYPE extends LogStreamConfig> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
LogStreamConfigImpl
(LogStreamConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionboolean
enabled()
Whether stream is enabled.boolean
int
hashCode()
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.idleMessageTimeout()
.int
Length of the in-memory queue that buffers log messages from loggers before sending them over the network.toString()
-
Constructor Details
-
LogStreamConfigImpl
Create an instance providing a builder.- Parameters:
builder
- extending builder base of this prototype
-
-
Method Details
-
enabled
public boolean enabled()Description copied from interface:LogStreamConfig
Whether stream is enabled.- Specified by:
enabled
in interfaceLogStreamConfig
- Returns:
- whether to allow streaming of log statements
-
contentType
- Specified by:
contentType
in interfaceLogStreamConfig
-
idleMessageTimeout
Description copied from interface:LogStreamConfig
How long to wait before we send the idle message, to make sure we keep the stream alive.- Specified by:
idleMessageTimeout
in interfaceLogStreamConfig
- Returns:
- if no messages appear within this duration, and idle message will be sent
- See Also:
-
queueSize
public int queueSize()Description copied from interface:LogStreamConfig
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.- Specified by:
queueSize
in interfaceLogStreamConfig
- Returns:
- size of the in-memory queue for log messages
-
idleString
Description copied from interface:LogStreamConfig
String sent when there are no log messages within theLogStreamConfig.idleMessageTimeout()
.- Specified by:
idleString
in interfaceLogStreamConfig
- Returns:
- string to write over the network when no log messages are received
-
toString
-
equals
-
hashCode
public int hashCode()
-