public class TarantoolAuthenticationHandler
extends io.netty.channel.SimpleChannelInboundHandler<io.netty.buffer.ByteBuf>
Constructor and Description |
---|
TarantoolAuthenticationHandler(CompletableFuture<io.netty.channel.Channel> connectionFuture,
TarantoolVersionHolder versionHolder,
TarantoolCredentials credentials,
TarantoolAuthenticator authenticator)
Basic constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
acceptInboundMessage, channelRead
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
public TarantoolAuthenticationHandler(CompletableFuture<io.netty.channel.Channel> connectionFuture, TarantoolVersionHolder versionHolder, TarantoolCredentials credentials, TarantoolAuthenticator authenticator)
connectionFuture
- future for tracking the authentication progressversionHolder
- reads and holds the Tarantool server version received in the greetingcredentials
- Tarantool user credentials for authenticationauthenticator
- an instance of TarantoolAuthenticator
implementing authentication mechanismpublic void channelRead0(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf in) throws Exception
channelRead0
in class io.netty.channel.SimpleChannelInboundHandler<io.netty.buffer.ByteBuf>
Exception
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) throws Exception
exceptionCaught
in interface io.netty.channel.ChannelHandler
exceptionCaught
in interface io.netty.channel.ChannelInboundHandler
exceptionCaught
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
Copyright © 2025 Picodata. All rights reserved.