Class TcpMicroBootstrapFlow
java.lang.Object
com.iohao.net.external.core.netty.micro.TcpMicroBootstrapFlow
- All Implemented Interfaces:
ExternalSettingAware, MicroBootstrapFlow<io.netty.bootstrap.ServerBootstrap>
Netty bootstrap flow for TCP-based external client connections.
- Author:
- 渔民小镇
- date:
- 2023-05-28
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchannelInitializer(io.netty.bootstrap.ServerBootstrap bootstrap) Arranges some business orchestration for the server.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) Inject the external setting after it has been assembled.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface MicroBootstrapFlow
pipelineFlow
-
Field Details
-
setting
-
-
Constructor Details
-
TcpMicroBootstrapFlow
public TcpMicroBootstrapFlow()
-
-
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.
-
setExternalSetting
Description copied from interface:ExternalSettingAwareInject the external setting after it has been assembled.- Specified by:
setExternalSettingin interfaceExternalSettingAware- Parameters:
setting- external setting for the current server
-
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.
-