Package org.drasyl.node.channel
Class DrasylNodeServerChannelInitializer
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.channel.ChannelInitializer<DrasylServerChannel>
-
- org.drasyl.node.channel.DrasylNodeServerChannelInitializer
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
@UnstableApi public class DrasylNodeServerChannelInitializer extends io.netty.channel.ChannelInitializer<DrasylServerChannel>
Initialize theDrasylServerChannel
used byDrasylNode
.
-
-
Field Summary
Fields Modifier and Type Field Description static short
MIN_DERIVED_PORT
-
Constructor Summary
Constructors Constructor Description DrasylNodeServerChannelInitializer(DrasylConfig config, Identity identity, DrasylNode node, io.netty.channel.EventLoopGroup udpServerGroup)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
initChannel(DrasylServerChannel ch)
-
Methods inherited from class io.netty.channel.ChannelInitializer
channelRegistered, exceptionCaught, handlerAdded, handlerRemoved
-
-
-
-
Field Detail
-
MIN_DERIVED_PORT
public static final short MIN_DERIVED_PORT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DrasylNodeServerChannelInitializer
public DrasylNodeServerChannelInitializer(DrasylConfig config, Identity identity, DrasylNode node, io.netty.channel.EventLoopGroup udpServerGroup)
-
-
Method Detail
-
initChannel
protected void initChannel(DrasylServerChannel ch)
- Specified by:
initChannel
in classio.netty.channel.ChannelInitializer<DrasylServerChannel>
-
-