Interface WsConfig
- All Superinterfaces:
NamedService, ProtocolConfig, Prototype.Api, WsProtocolConfig
- All Known Implementing Classes:
WsConfig.BuilderBase.WsConfigImpl
WebSocket protocol configuration.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classFluent API builder forWsConfig.static classWsConfig.BuilderBase<BUILDER extends WsConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends WsConfig>Fluent API builder base forWsConfig. -
Method Summary
Modifier and TypeMethodDescriptionstatic WsConfig.Builderbuilder()Create a new fluent API builder to customize configuration.static WsConfig.BuilderCreate a new fluent API builder from an existing instance.static WsConfigcreate()Create a new instance with default values.static WsConfigCreate a new instance from configuration.intMax WebSocket frame size supported by the server on a read operation.name()Name of this configuration.origins()WebSocket origins.default Stringtype()Protocol configuration type.Methods inherited from interface ProtocolConfig
enabled, transportBindingTypesModifier and TypeMethodDescriptiondefault booleanenabled()Whether this protocol configuration is enabled.Transport binding provider keys compatible with this protocol.Methods inherited from interface WsProtocolConfig
maxBufferedMessageSizeModifier and TypeMethodDescriptiondefault 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
-
type
Protocol configuration type.- Specified by:
typein interfaceNamedService- Returns:
- type of this configuration
-
origins
-
name
String name()Name of this configuration.- Specified by:
namein interfaceNamedService- Returns:
- configuration name
-
maxFrameLength
int maxFrameLength()Max WebSocket frame size supported by the server on a read operation. Default is 1 MiB.- Returns:
- max frame size to read
-