Class WsProtocolConfig.BuilderBase<BUILDER extends WsProtocolConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends WsProtocolConfig>
java.lang.Object
io.helidon.websocket.WsProtocolConfig.BuilderBase<BUILDER, PROTOTYPE>
- Type Parameters:
BUILDER- type of the builder extending this abstract builderPROTOTYPE- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER, PROTOTYPE>, ConfigBuilderSupport.ConfiguredBuilder<BUILDER, PROTOTYPE>
- Direct Known Subclasses:
WsClientProtocolConfig.BuilderBase, WsConfig.BuilderBase, WsProtocolConfig.Builder
- Enclosing interface:
WsProtocolConfig
public abstract static class WsProtocolConfig.BuilderBase<BUILDER extends WsProtocolConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends WsProtocolConfig>
extends Object
implements ConfigBuilderSupport.ConfiguredBuilder<BUILDER, PROTOTYPE>
Fluent API builder base for
WsProtocolConfig.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconfig()Configuration used to configure this instance.Update builder from configuration (node of this type).from(WsProtocolConfig prototype) Update this builder from an existing prototype instance.from(WsProtocolConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.Maximum size of a WebSocket message buffered for delivery to a listener.maxBufferedMessageSize(Size maxBufferedMessageSize) Maximum size of a WebSocket message buffered for delivery to a listener.protected voidHandles providers and decorators.toString()protected voidValidates required properties.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
Update this builder from an existing prototype instance. This method disables automatic service discovery.- Parameters:
prototype- existing prototype to update this builder from- Returns:
- updated builder instance
-
from
Update this builder from an existing prototype builder instance.- Parameters:
builder- existing builder prototype to update this builder from- Returns:
- updated builder instance
-
config
Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
configin interfaceConfigBuilderSupport.ConfiguredBuilder<BUILDER extends WsProtocolConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends WsProtocolConfig>- Parameters:
config- configuration instance used to obtain values to update this builder- Returns:
- updated builder instance
-
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.- Parameters:
maxBufferedMessageSize- maximum size of a buffered message- Returns:
- updated builder instance
- See Also:
-
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
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties. -
config
-