public class Codec extends Object
| Constructor and Description |
|---|
Codec() |
| Modifier and Type | Method and Description |
|---|---|
Message |
decode(io.netty.buffer.ByteBuf buffer) |
io.netty.buffer.ByteBuf |
encode(FindNode msg) |
io.netty.buffer.ByteBuf |
encode(FindValue msg) |
io.netty.buffer.ByteBuf |
encode(Message msg) |
io.netty.buffer.ByteBuf |
encode(NodeReply msg) |
io.netty.buffer.ByteBuf |
encode(Ping msg) |
io.netty.buffer.ByteBuf |
encode(Pong msg) |
io.netty.buffer.ByteBuf |
encode(Store msg) |
io.netty.buffer.ByteBuf |
encode(StoreReply msg) |
io.netty.buffer.ByteBuf |
encode(ValueReply msg) |
public Message decode(io.netty.buffer.ByteBuf buffer) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic io.netty.buffer.ByteBuf encode(Ping msg)
public io.netty.buffer.ByteBuf encode(Pong msg)
public io.netty.buffer.ByteBuf encode(FindNode msg)
public io.netty.buffer.ByteBuf encode(NodeReply msg)
public io.netty.buffer.ByteBuf encode(Store msg) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic io.netty.buffer.ByteBuf encode(StoreReply msg)
public io.netty.buffer.ByteBuf encode(FindValue msg)
public io.netty.buffer.ByteBuf encode(ValueReply msg)
public io.netty.buffer.ByteBuf encode(Message msg) throws UnsupportedEncodingException
UnsupportedEncodingExceptionCopyright © 2016. All Rights Reserved.