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.
  • Constructor Details

    • LogStreamConfigImpl

      protected LogStreamConfigImpl(LogStreamConfig.BuilderBase<?,?> builder)
      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 interface LogStreamConfig
      Returns:
      whether to allow streaming of log statements
    • contentType

      public HttpMediaType contentType()
      Specified by:
      contentType in interface LogStreamConfig
    • idleMessageTimeout

      public Duration 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 interface LogStreamConfig
      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 interface LogStreamConfig
      Returns:
      size of the in-memory queue for log messages
    • idleString

      public String idleString()
      Description copied from interface: LogStreamConfig
      String sent when there are no log messages within the LogStreamConfig.idleMessageTimeout().
      Specified by:
      idleString in interface LogStreamConfig
      Returns:
      string to write over the network when no log messages are received
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object