Class TcpClientChannelInitializer
- java.lang.Object
-
- io.servicetalk.tcp.netty.internal.TcpClientChannelInitializer
-
- All Implemented Interfaces:
ChannelInitializer
public class TcpClientChannelInitializer extends java.lang.Object implements ChannelInitializer
ChannelInitializerfor TCP client.
-
-
Constructor Summary
Constructors Constructor Description TcpClientChannelInitializer(ReadOnlyTcpClientConfig config, ConnectionObserver observer)Creates aChannelInitializerfor theconfig.TcpClientChannelInitializer(ReadOnlyTcpClientConfig config, ConnectionObserver observer, boolean deferSslHandler)Creates aChannelInitializerfor theconfig.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit(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
-
TcpClientChannelInitializer
public TcpClientChannelInitializer(ReadOnlyTcpClientConfig config, ConnectionObserver observer)
Creates aChannelInitializerfor theconfig.- Parameters:
config- to use for initialization.observer-ConnectionObserverto report network events.
-
TcpClientChannelInitializer
public TcpClientChannelInitializer(ReadOnlyTcpClientConfig config, ConnectionObserver observer, boolean deferSslHandler)
Creates aChannelInitializerfor theconfig.- Parameters:
config- to use for initialization.observer-ConnectionObserverto report network events.deferSslHandler-trueto wrap theSslHandlerin aDeferSslHandler.
-
-
Method Detail
-
init
public void init(io.netty.channel.Channel channel)
Description copied from interface:ChannelInitializerConfigures 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:
initin interfaceChannelInitializer- Parameters:
channel- NettyChannel.
-
-