public class ClientFrameDecoder extends io.netty.handler.codec.ReplayingDecoder<Object>
| Modifier and Type | Field and Description |
|---|---|
static String |
CMD_CONNECT |
static String |
CMD_PUBLISH |
static String |
CMD_SUBSCRIBE |
static String |
CMD_UNSUBSCRIBE |
| Constructor and Description |
|---|
ClientFrameDecoder() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
decode(io.netty.channel.ChannelHandlerContext context,
io.netty.buffer.ByteBuf in,
List<Object> out) |
protected ClientFrame |
decodeCommand(io.netty.channel.ChannelHandlerContext context,
String command,
io.netty.buffer.ByteBuf in) |
protected int |
getMaxMessageSize() |
protected void |
throwTooLongFrameException(io.netty.channel.ChannelHandlerContext ctx) |
callDecode, channelInactive, checkpoint, checkpoint, state, stateactualReadableBytes, channelRead, channelReadComplete, decodeLast, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setSingleDecodechannelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredpublic static final String CMD_CONNECT
public static final String CMD_PUBLISH
public static final String CMD_SUBSCRIBE
public static final String CMD_UNSUBSCRIBE
protected ClientFrame decodeCommand(io.netty.channel.ChannelHandlerContext context, String command, io.netty.buffer.ByteBuf in)
protected void decode(io.netty.channel.ChannelHandlerContext context,
io.netty.buffer.ByteBuf in,
List<Object> out)
throws Exception
decode in class io.netty.handler.codec.ByteToMessageDecoderExceptionprotected int getMaxMessageSize()
protected void throwTooLongFrameException(io.netty.channel.ChannelHandlerContext ctx)
Copyright © 2015. All Rights Reserved.