Package org.apache.bookkeeper.proto
Class BookieNettyServer.BookieSideConnectionPeerContextHandler
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- org.apache.bookkeeper.proto.BookieNettyServer.BookieSideConnectionPeerContextHandler
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
- Enclosing class:
- BookieNettyServer
class BookieNettyServer.BookieSideConnectionPeerContextHandler extends io.netty.channel.ChannelInboundHandlerAdapter
-
-
Field Summary
Fields Modifier and Type Field Description (package private) BookKeeperPrincipal
authorizedId
(package private) io.netty.channel.Channel
channel
(package private) BookieConnectionPeer
connectionPeer
-
Constructor Summary
Constructors Constructor Description BookieSideConnectionPeerContextHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
channelActive(io.netty.channel.ChannelHandlerContext ctx)
BookieConnectionPeer
getConnectionPeer()
-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
-
-
-
Field Detail
-
connectionPeer
final BookieConnectionPeer connectionPeer
-
channel
volatile io.netty.channel.Channel channel
-
authorizedId
volatile BookKeeperPrincipal authorizedId
-
-
Method Detail
-
getConnectionPeer
public BookieConnectionPeer getConnectionPeer()
-
channelActive
public void channelActive(io.netty.channel.ChannelHandlerContext ctx) throws java.lang.Exception
- Specified by:
channelActive
in interfaceio.netty.channel.ChannelInboundHandler
- Overrides:
channelActive
in classio.netty.channel.ChannelInboundHandlerAdapter
- Throws:
java.lang.Exception
-
-