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
ConstructorsModifierConstructorDescriptionprotectedLogStreamConfigImpl(LogStreamConfig.BuilderBase<?, ?> builder) Create an instance providing a builder. -
Method Summary
Modifier and TypeMethodDescriptionbooleanenabled()Whether stream is enabled.booleaninthashCode()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().intLength 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:LogStreamConfigWhether stream is enabled.- Specified by:
enabledin interfaceLogStreamConfig- Returns:
- whether to allow streaming of log statements
-
contentType
- Specified by:
contentTypein interfaceLogStreamConfig
-
idleMessageTimeout
Description copied from interface:LogStreamConfigHow long to wait before we send the idle message, to make sure we keep the stream alive.- Specified by:
idleMessageTimeoutin 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:LogStreamConfigLength 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:
queueSizein interfaceLogStreamConfig- Returns:
- size of the in-memory queue for log messages
-
idleString
Description copied from interface:LogStreamConfigString sent when there are no log messages within theLogStreamConfig.idleMessageTimeout().- Specified by:
idleStringin interfaceLogStreamConfig- Returns:
- string to write over the network when no log messages are received
-
toString
-
equals
-
hashCode
public int hashCode()
-