Class WsClientProtocolConfig.Builder
java.lang.Object
io.helidon.websocket.WsProtocolConfig.BuilderBase<WsClientProtocolConfig.Builder, WsClientProtocolConfig>
io.helidon.webclient.websocket.WsClientProtocolConfig.BuilderBase<WsClientProtocolConfig.Builder, WsClientProtocolConfig>
io.helidon.webclient.websocket.WsClientProtocolConfig.Builder
- All Implemented Interfaces:
Prototype.Builder<WsClientProtocolConfig.Builder, WsClientProtocolConfig>, Builder<WsClientProtocolConfig.Builder, WsClientProtocolConfig>, ConfigBuilderSupport.ConfiguredBuilder<WsClientProtocolConfig.Builder, WsClientProtocolConfig>, Supplier<WsClientProtocolConfig>
- Enclosing interface:
WsClientProtocolConfig
public static class WsClientProtocolConfig.Builder
extends WsClientProtocolConfig.BuilderBase<WsClientProtocolConfig.Builder, WsClientProtocolConfig>
implements Builder<WsClientProtocolConfig.Builder, WsClientProtocolConfig>
Fluent API builder for
WsClientProtocolConfig.-
Nested Class Summary
Nested classes/interfaces inherited from class WsClientProtocolConfig.BuilderBase
WsClientProtocolConfig.BuilderBase.WsClientProtocolConfigImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations.Nested classes/interfaces inherited from class WsProtocolConfig.BuilderBase
WsProtocolConfig.BuilderBase.WsProtocolConfigImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class WsClientProtocolConfig.BuilderBase
addSubProtocol, addSubProtocols, clearSubProtocols, config, from, from, name, name, preBuildPrototype, subProtocols, subProtocols, toString, validatePrototypeModifier and TypeMethodDescriptionaddSubProtocol(String subProtocol) WebSocket sub-protocols requested by the client.addSubProtocols(List<String> subProtocols) WebSocket sub-protocols requested by the client.Clear all subProtocols.Update builder from configuration (node of this type).from(WsClientProtocolConfig prototype) Update this builder from an existing prototype instance.from(WsClientProtocolConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.name()Name of this protocol configuration.Name of this protocol configuration.protected voidHandles providers and decorators.WebSocket sub-protocols requested by the client.subProtocols(List<String> subProtocols) WebSocket sub-protocols requested by the client.toString()protected voidValidates required properties.Methods inherited from class WsProtocolConfig.BuilderBase
config, from, from, maxBufferedMessageSize, maxBufferedMessageSizeModifier and TypeMethodDescriptionconfig()Configuration used to configure this instance.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.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault WsClientProtocolConfigget()default WsClientProtocolConfig.Builderidentity()Instance of this builder as the correct type.default WsClientProtocolConfig.Builderupdate(Consumer<WsClientProtocolConfig.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault WsClientProtocolConfig.Builderself()Instance of this builder as the correct type.
-
Method Details
-
buildPrototype
Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildPrototypein interfacePrototype.Builder<WsClientProtocolConfig.Builder, WsClientProtocolConfig>- Returns:
- an instance of the setup object created from this builder
-
build
Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildin interfaceBuilder<WsClientProtocolConfig.Builder, WsClientProtocolConfig>- Returns:
- instance of the built type
-