Interface WsProtocolConfig
- All Superinterfaces:
Prototype.Api
- All Known Subinterfaces:
WsClientProtocolConfig, io.helidon.webclient.websocket.WsClientProtocolConfigBlueprint, WsConfig, io.helidon.webserver.websocket.WsConfigBlueprint
- All Known Implementing Classes:
WsClientProtocolConfig.BuilderBase.WsClientProtocolConfigImpl, WsConfig.BuilderBase.WsConfigImpl, WsProtocolConfig.BuilderBase.WsProtocolConfigImpl
WebSocket protocol configuration available from a
WsSession.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forWsProtocolConfig.static classWsProtocolConfig.BuilderBase<BUILDER extends WsProtocolConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends WsProtocolConfig>Fluent API builder base forWsProtocolConfig. -
Method Summary
Modifier and TypeMethodDescriptionstatic WsProtocolConfig.Builderbuilder()Create a new fluent API builder to customize configuration.static WsProtocolConfig.Builderbuilder(WsProtocolConfig instance) Create a new fluent API builder from an existing instance.static WsProtocolConfigcreate()Create a new instance with default values.static WsProtocolConfigCreate a new instance from configuration.default SizeMaximum size of a WebSocket message buffered for delivery to a listener.
-
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
-
maxBufferedMessageSize
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 byString.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 between0 BandInteger.MAX_VALUEbytes, inclusive. A value of0 Bdisables buffering of non-empty messages while allowing empty messages. Default is 1 MiB.- Returns:
- maximum size of a buffered message
-