Package io.helidon.webserver.websocket
Class WebSocketRouting.Builder
java.lang.Object
io.helidon.webserver.websocket.WebSocketRouting.Builder
- All Implemented Interfaces:
Builder<WebSocketRouting.Builder,
,Routing> Supplier<Routing>
- Enclosing class:
- WebSocketRouting
public static class WebSocketRouting.Builder
extends Object
implements Builder<WebSocketRouting.Builder,Routing>
Fluent API builder for
WebSocketRouting
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the instance from this builder.endpoint
(jakarta.websocket.server.ServerEndpointConfig serverEndpointConfig) Add endpoint.Add endpoint.Add endpoint.Add endpoint.executor
(ExecutorService executorService) ExecutorService supplying threads for execution of endpoint methods.extension
(jakarta.websocket.Extension extension) Add Jakarta WebSocket extension.
-
Method Details
-
endpoint
Add endpoint.- Parameters:
path
- path of the endpointendpointClass
- annotated endpoint class- Returns:
- updated builder
-
endpoint
Add endpoint.- Parameters:
endpointClass
- annotated endpoint class- Returns:
- updated builder
-
endpoint
public WebSocketRouting.Builder endpoint(String path, jakarta.websocket.server.ServerEndpointConfig serverEndpointConfig) Add endpoint.- Parameters:
path
- path of the endpointserverEndpointConfig
- Jakarta WebSocket endpoint configuration- Returns:
- updated builder
-
endpoint
public WebSocketRouting.Builder endpoint(jakarta.websocket.server.ServerEndpointConfig serverEndpointConfig) Add endpoint.- Parameters:
serverEndpointConfig
- Jakarta WebSocket endpoint configuration- Returns:
- updated builder
-
extension
Add Jakarta WebSocket extension.- Parameters:
extension
- Jakarta WebSocket extension- Returns:
- updated builder
-
executor
ExecutorService supplying threads for execution of endpoint methods.- Parameters:
executorService
- executorService supplying threads for execution of endpoint methods- Returns:
- updated builder
-
build
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<WebSocketRouting.Builder,
Routing> - Returns:
- instance of the built type
-