@Spi(scope=PROTOTYPE) public interface Codec
byte[] encode(Channel channel, Object message) throws IOException
IOExceptionObject decode(Channel channel, String remoteIp, byte[] buffer) throws IOException
channel - remoteIp - 用来在server端decode request时能获取到client的ip。buffer - IOExceptionCopyright © 2017. All rights reserved.