Package org.apache.bookkeeper.proto
Class BookieProtoEncoding.ResponseEncoder
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelOutboundHandlerAdapter
-
- org.apache.bookkeeper.proto.BookieProtoEncoding.ResponseEncoder
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelOutboundHandler
- Enclosing class:
- BookieProtoEncoding
@Sharable public static class BookieProtoEncoding.ResponseEncoder extends io.netty.channel.ChannelOutboundHandlerAdapter
A response message encoder.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) BookieProtoEncoding.EnDecoder
repPreV3
(package private) BookieProtoEncoding.EnDecoder
repV3
-
Constructor Summary
Constructors Constructor Description ResponseEncoder(com.google.protobuf.ExtensionRegistry extensionRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
write(io.netty.channel.ChannelHandlerContext ctx, java.lang.Object msg, io.netty.channel.ChannelPromise promise)
-
Methods inherited from class io.netty.channel.ChannelOutboundHandlerAdapter
bind, close, connect, deregister, disconnect, flush, read
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, exceptionCaught, handlerAdded, handlerRemoved, isSharable
-
-
-
-
Field Detail
-
repPreV3
final BookieProtoEncoding.EnDecoder repPreV3
-
repV3
final BookieProtoEncoding.EnDecoder repV3
-
-
Method Detail
-
write
public void write(io.netty.channel.ChannelHandlerContext ctx, java.lang.Object msg, io.netty.channel.ChannelPromise promise) throws java.lang.Exception
- Specified by:
write
in interfaceio.netty.channel.ChannelOutboundHandler
- Overrides:
write
in classio.netty.channel.ChannelOutboundHandlerAdapter
- Throws:
java.lang.Exception
-
-