Package io.tarantool.driver.core
Class TarantoolChannelInitializer
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
-
- io.tarantool.driver.core.TarantoolChannelInitializer
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
public class TarantoolChannelInitializer extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
The main channel pipeline initializer.- Adds authentication handler which accepts the Tarantool server greeting and sets up the pipeline when channel is connect to the server; - Sets up the necessary handlers and codecs.
-
-
Constructor Summary
Constructors Constructor Description TarantoolChannelInitializer(TarantoolClientConfig config, RequestFutureManager futureManager, TarantoolVersionHolder versionHolder, CompletableFuture<io.netty.channel.Channel> connectionFuture)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
initChannel(io.netty.channel.socket.SocketChannel socketChannel)
-
Methods inherited from class io.netty.channel.ChannelInitializer
channelRegistered, exceptionCaught, handlerAdded, handlerRemoved
-
-
-
-
Constructor Detail
-
TarantoolChannelInitializer
public TarantoolChannelInitializer(TarantoolClientConfig config, RequestFutureManager futureManager, TarantoolVersionHolder versionHolder, CompletableFuture<io.netty.channel.Channel> connectionFuture)
-
-