Class TcpServerChannelInitializer
- java.lang.Object
-
- io.servicetalk.tcp.netty.internal.TcpServerChannelInitializer
-
- All Implemented Interfaces:
ChannelInitializer
public class TcpServerChannelInitializer extends java.lang.Object implements ChannelInitializer
ChannelInitializer
for TCP.
-
-
Constructor Summary
Constructors Constructor Description TcpServerChannelInitializer(ReadOnlyTcpServerConfig config, ConnectionObserver observer)
Creates aChannelInitializer
for theconfig
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init(io.netty.channel.Channel channel)
Configures the passedChannel
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.servicetalk.transport.netty.internal.ChannelInitializer
andThen
-
-
-
-
Constructor Detail
-
TcpServerChannelInitializer
public TcpServerChannelInitializer(ReadOnlyTcpServerConfig config, ConnectionObserver observer)
Creates aChannelInitializer
for theconfig
.- Parameters:
config
- to use for initialization.observer
-ConnectionObserver
to report network events.
-
-
Method Detail
-
init
public void init(io.netty.channel.Channel channel)
Description copied from interface:ChannelInitializer
Configures the passedChannel
.Typically, an initializer should add handlers to the channel at the end. This makes it possible for the code using the initializer to create the order of the handlers in the pipeline.
- Specified by:
init
in interfaceChannelInitializer
- Parameters:
channel
- NettyChannel
.
-
-