Package org.apache.bookkeeper.proto
Class BookieProtoEncoding.ResponseDecoder
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- org.apache.bookkeeper.proto.BookieProtoEncoding.ResponseDecoder
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
- Enclosing class:
- BookieProtoEncoding
@Sharable public static class BookieProtoEncoding.ResponseDecoder extends io.netty.channel.ChannelInboundHandlerAdapter
A response message decoder.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) BookieProtoEncoding.EnDecoder
repPreV3
(package private) BookieProtoEncoding.EnDecoder
repV3
(package private) boolean
tlsEnabled
(package private) boolean
useV2Protocol
(package private) boolean
usingV3Protocol
-
Constructor Summary
Constructors Constructor Description ResponseDecoder(com.google.protobuf.ExtensionRegistry extensionRegistry, boolean useV2Protocol, boolean tlsEnabled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
channelRead(io.netty.channel.ChannelHandlerContext ctx, java.lang.Object msg)
-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
-
-
-
Field Detail
-
repPreV3
final BookieProtoEncoding.EnDecoder repPreV3
-
repV3
final BookieProtoEncoding.EnDecoder repV3
-
useV2Protocol
final boolean useV2Protocol
-
tlsEnabled
final boolean tlsEnabled
-
usingV3Protocol
boolean usingV3Protocol
-
-
Method Detail
-
channelRead
public void channelRead(io.netty.channel.ChannelHandlerContext ctx, java.lang.Object msg) throws java.lang.Exception
- Specified by:
channelRead
in interfaceio.netty.channel.ChannelInboundHandler
- Overrides:
channelRead
in classio.netty.channel.ChannelInboundHandlerAdapter
- Throws:
java.lang.Exception
-
-