Class WsProtocolConfig.BuilderBase.WsProtocolConfigImpl

java.lang.Object
io.helidon.websocket.WsProtocolConfig.BuilderBase.WsProtocolConfigImpl
All Implemented Interfaces:
Prototype.Api, WsProtocolConfig
Direct Known Subclasses:
WsClientProtocolConfig.BuilderBase.WsClientProtocolConfigImpl, WsConfig.BuilderBase.WsConfigImpl
Enclosing class:
WsProtocolConfig.BuilderBase<BUILDER extends WsProtocolConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends WsProtocolConfig>

protected static class WsProtocolConfig.BuilderBase.WsProtocolConfigImpl extends Object implements WsProtocolConfig
Generated implementation of the prototype, can be extended by descendant prototype implementations.
  • Constructor Details

    • WsProtocolConfigImpl

      protected WsProtocolConfigImpl(WsProtocolConfig.BuilderBase<?,?> builder)
      Create an instance providing a builder.
      Parameters:
      builder - extending builder base of this prototype
  • Method Details

    • maxBufferedMessageSize

      public Size maxBufferedMessageSize()
      Description copied from interface: WsProtocolConfig
      Maximum size of a WebSocket message buffered for delivery to a listener. Binary message size is measured in bytes. Text message size is approximated using the number of UTF-16 code units in each decoded string fragment, as reported by String.length(), and may be smaller than the UTF-8 payload size. This setting does not limit messages delivered to listeners as fragments, readers, or input streams. The value must be between 0 B and Integer.MAX_VALUE bytes, inclusive. A value of 0 B disables buffering of non-empty messages while allowing empty messages. Default is 1 MiB.
      Specified by:
      maxBufferedMessageSize in interface WsProtocolConfig
      Returns:
      maximum size of a buffered message
    • 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