Package org.apache.bookkeeper.proto
Class BookieProtoEncoding.ResponseEnDecoderV3
- java.lang.Object
- 
- org.apache.bookkeeper.proto.BookieProtoEncoding.ResponseEnDecoderV3
 
- 
- All Implemented Interfaces:
- BookieProtoEncoding.EnDecoder
 - Enclosing class:
- BookieProtoEncoding
 
 public static class BookieProtoEncoding.ResponseEnDecoderV3 extends java.lang.Object implements BookieProtoEncoding.EnDecoder A response encoder/decoder for the Bookkeeper protocol version 3.
- 
- 
Field SummaryFields Modifier and Type Field Description (package private) com.google.protobuf.ExtensionRegistryextensionRegistry
 - 
Constructor SummaryConstructors Constructor Description ResponseEnDecoderV3(com.google.protobuf.ExtensionRegistry extensionRegistry)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectdecode(io.netty.buffer.ByteBuf packet)Decode a packet into an object.java.lang.Objectencode(java.lang.Object msg, io.netty.buffer.ByteBufAllocator allocator)Encode a object into channel buffer.
 
- 
- 
- 
Method Detail- 
decodepublic java.lang.Object decode(io.netty.buffer.ByteBuf packet) throws java.lang.ExceptionDescription copied from interface:BookieProtoEncoding.EnDecoderDecode a packet into an object.- Specified by:
- decodein interface- BookieProtoEncoding.EnDecoder
- Parameters:
- packet- received packet.
- Returns:
- parsed object.
- Throws:
- java.lang.Exception
 
 - 
encodepublic java.lang.Object encode(java.lang.Object msg, io.netty.buffer.ByteBufAllocator allocator) throws java.lang.ExceptionDescription copied from interface:BookieProtoEncoding.EnDecoderEncode a object into channel buffer.- Specified by:
- encodein interface- BookieProtoEncoding.EnDecoder
- Parameters:
- msg- object.
- Returns:
- encode buffer.
- Throws:
- java.lang.Exception
 
 
- 
 
-