Class TcpClientChannelInitializer
java.lang.Object
io.servicetalk.tcp.netty.internal.TcpClientChannelInitializer
- All Implemented Interfaces:
ChannelInitializer
ChannelInitializer
for TCP client.-
Constructor Summary
ConstructorDescriptionTcpClientChannelInitializer
(ReadOnlyTcpClientConfig config, ConnectionObserver observer) Deprecated.TcpClientChannelInitializer
(ReadOnlyTcpClientConfig config, ConnectionObserver observer, boolean deferSslHandler) TcpClientChannelInitializer
(ReadOnlyTcpClientConfig config, ConnectionObserver observer, ExecutionContext<?> executionContext, boolean deferSslHandler) Creates aChannelInitializer
for theconfig
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 Details
-
TcpClientChannelInitializer
@Deprecated public TcpClientChannelInitializer(ReadOnlyTcpClientConfig config, ConnectionObserver observer) Deprecated.Creates aChannelInitializer
for theconfig
.- Parameters:
config
- to use for initialization.observer
-ConnectionObserver
to report network events.
-
TcpClientChannelInitializer
@Deprecated public TcpClientChannelInitializer(ReadOnlyTcpClientConfig config, ConnectionObserver observer, boolean deferSslHandler) Deprecated.Creates aChannelInitializer
for theconfig
.- Parameters:
config
- to use for initialization.observer
-ConnectionObserver
to report network events.deferSslHandler
-true
to wrap theSslHandler
in aDeferSslHandler
.
-
TcpClientChannelInitializer
public TcpClientChannelInitializer(ReadOnlyTcpClientConfig config, ConnectionObserver observer, ExecutionContext<?> executionContext, boolean deferSslHandler) Creates aChannelInitializer
for theconfig
.- Parameters:
config
- to use for initialization.observer
-ConnectionObserver
to report network events.executionContext
-ExecutionContext
to use forConnectionInfo
reporting.deferSslHandler
-true
to wrap theSslHandler
in aDeferSslHandler
.
-
-
Method Details
-
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
.
-
TcpClientChannelInitializer(ReadOnlyTcpClientConfig, ConnectionObserver, ExecutionContext, boolean)