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.EnDecoder
An encoder/decoder interface for the Bookkeeper protocol.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
decode(io.netty.buffer.ByteBuf packet)
Decode a packet into an object.java.lang.Object
encode(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.Exception
Encode 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.Exception
Decode a packet into an object.- Parameters:
packet
- received packet.- Returns:
- parsed object.
- Throws:
java.lang.Exception
-
-