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.ChannelInboundHandlerAdapterA response message decoder.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) BookieProtoEncoding.EnDecoderrepPreV3(package private) BookieProtoEncoding.EnDecoderrepV3(package private) booleantlsEnabled(package private) booleanuseV2Protocol(package private) booleanusingV3Protocol
-
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 voidchannelRead(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:
channelReadin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelReadin classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
java.lang.Exception
-
-