Package org.apache.bookkeeper.proto
Interface BookieProtoEncoding.EnDecoder
-
- All Known Implementing Classes:
BookieProtoEncoding.RequestEnDeCoderPreV3,BookieProtoEncoding.RequestEnDecoderV3,BookieProtoEncoding.ResponseEnDeCoderPreV3,BookieProtoEncoding.ResponseEnDecoderV3
- Enclosing class:
- BookieProtoEncoding
public static interface BookieProtoEncoding.EnDecoderAn encoder/decoder interface for the Bookkeeper protocol.
-
-
Method Summary
All Methods Instance Methods Abstract 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 object, io.netty.buffer.ByteBufAllocator allocator)Encode a object into channel buffer.
-
-
-
Method Detail
-
encode
java.lang.Object encode(java.lang.Object object, io.netty.buffer.ByteBufAllocator allocator) throws java.lang.ExceptionEncode a object into channel buffer.- Parameters:
object- object.- Returns:
- encode buffer.
- Throws:
java.lang.Exception
-
decode
java.lang.Object decode(io.netty.buffer.ByteBuf packet) throws java.lang.ExceptionDecode a packet into an object.- Parameters:
packet- received packet.- Returns:
- parsed object.
- Throws:
java.lang.Exception
-
-