Class WebSocketMicroBootstrapFlow
java.lang.Object
com.iohao.net.external.core.netty.micro.WebSocketMicroBootstrapFlow
- All Implemented Interfaces:
ExternalSettingAware, MicroBootstrapFlow<io.netty.bootstrap.ServerBootstrap>
Startup process for WebSocket and actual user connection server
- Author:
- 渔民小镇
- date:
- 2023-05-31
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchannelInitializer(io.netty.bootstrap.ServerBootstrap bootstrap) Arranges some business orchestration for the server.voidhttpHandler(PipelineContext context) voidoption(io.netty.bootstrap.ServerBootstrap bootstrap) Configures some options for the server.voidpipelineCodec(PipelineContext context) Orchestrates the encoding and decoding logic.voidpipelineCustom(PipelineContext context) Custom business orchestration (to arrange some business logic for the server).voidpipelineIdle(PipelineContext context) Orchestrates the heartbeat-related logic.voidsetExternalSetting(ExternalSetting setting) voidwebsocketHandler(PipelineContext context) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface MicroBootstrapFlow
pipelineFlow
-
Field Details
-
verifyHandler
-
-
Constructor Details
-
WebSocketMicroBootstrapFlow
public WebSocketMicroBootstrapFlow()
-
-
Method Details
-
option
public void option(io.netty.bootstrap.ServerBootstrap bootstrap) Description copied from interface:MicroBootstrapFlowConfigures some options for the server. The server is not yet started at this point.- Parameters:
bootstrap- The server bootstrap.
-
pipelineCodec
Description copied from interface:MicroBootstrapFlowOrchestrates the encoding and decoding logic.- Parameters:
context- The PipelineContext.
-
websocketHandler
-
httpHandler
-
setExternalSetting
- Specified by:
setExternalSettingin interfaceExternalSettingAware
-
channelInitializer
public void channelInitializer(io.netty.bootstrap.ServerBootstrap bootstrap) Description copied from interface:MicroBootstrapFlowArranges some business orchestration for the server. The server is not yet started at this point.- Specified by:
channelInitializerin interfaceMicroBootstrapFlow<io.netty.bootstrap.ServerBootstrap>- Parameters:
bootstrap- The server bootstrap.
-
pipelineIdle
Description copied from interface:MicroBootstrapFlowOrchestrates the heartbeat-related logic.- Specified by:
pipelineIdlein interfaceMicroBootstrapFlow<io.netty.bootstrap.ServerBootstrap>- Parameters:
context- The PipelineContext.
-
pipelineCustom
Description copied from interface:MicroBootstrapFlowCustom business orchestration (to arrange some business logic for the server).- Specified by:
pipelineCustomin interfaceMicroBootstrapFlow<io.netty.bootstrap.ServerBootstrap>- Parameters:
context- The PipelineContext.
-