public class ClientFrameEncoder extends io.netty.handler.codec.MessageToByteEncoder<ClientFrame>
| Modifier and Type | Field and Description |
|---|---|
static byte[] |
CMD_CONNECT |
static byte[] |
CMD_PUBLISH |
static byte[] |
CMD_SUBSCRIBE |
static byte[] |
CMD_UNSUBSCRIBE |
static byte[] |
PING |
static byte[] |
PONG |
| Constructor and Description |
|---|
ClientFrameEncoder() |
| Modifier and Type | Method and Description |
|---|---|
void |
encode(io.netty.channel.ChannelHandlerContext ctx,
ClientFrame frame,
io.netty.buffer.ByteBuf out) |
acceptOutboundMessage, allocateBuffer, writebind, close, connect, deregister, disconnect, flush, readexceptionCaught, handlerAdded, handlerRemoved, isSharablepublic static final byte[] CMD_CONNECT
public static final byte[] CMD_PUBLISH
public static final byte[] CMD_SUBSCRIBE
public static final byte[] CMD_UNSUBSCRIBE
public static final byte[] PING
public static final byte[] PONG
public void encode(io.netty.channel.ChannelHandlerContext ctx,
ClientFrame frame,
io.netty.buffer.ByteBuf out)
throws Exception
encode in class io.netty.handler.codec.MessageToByteEncoder<ClientFrame>ExceptionCopyright © 2015. All Rights Reserved.