Package org.apache.bookkeeper.proto
Class BookieProtoEncoding.RequestEncoder
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelOutboundHandlerAdapter
-
- org.apache.bookkeeper.proto.BookieProtoEncoding.RequestEncoder
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelOutboundHandler
- Enclosing class:
- BookieProtoEncoding
@Sharable public static class BookieProtoEncoding.RequestEncoder extends io.netty.channel.ChannelOutboundHandlerAdapter
A request message encoder.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) BookieProtoEncoding.EnDecoder
reqPreV3
(package private) BookieProtoEncoding.EnDecoder
reqV3
-
Constructor Summary
Constructors Constructor Description RequestEncoder(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
-
reqPreV3
final BookieProtoEncoding.EnDecoder reqPreV3
-
reqV3
final BookieProtoEncoding.EnDecoder reqV3
-
-
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
-
-