public class ServerFrameEncoder extends io.netty.handler.codec.MessageToByteEncoder<ServerFrame>
ServerFrame objects to binary to be sent over the network.| Modifier and Type | Field and Description |
|---|---|
static byte[] |
CMD_ERR |
static byte[] |
CMD_INFO |
static byte[] |
CMD_PUB |
static byte[] |
OK |
static byte[] |
PING |
static byte[] |
PONG |
| Constructor and Description |
|---|
ServerFrameEncoder() |
| Modifier and Type | Method and Description |
|---|---|
void |
encode(io.netty.channel.ChannelHandlerContext ctx,
ServerFrame frame,
io.netty.buffer.ByteBuf out) |
acceptOutboundMessage, allocateBuffer, writebind, close, connect, deregister, disconnect, flush, readexceptionCaught, handlerAdded, handlerRemoved, isSharablepublic static final byte[] CMD_PUB
public static final byte[] CMD_ERR
public static final byte[] CMD_INFO
public static final byte[] OK
public static final byte[] PING
public static final byte[] PONG
public void encode(io.netty.channel.ChannelHandlerContext ctx,
ServerFrame frame,
io.netty.buffer.ByteBuf out)
throws Exception
encode in class io.netty.handler.codec.MessageToByteEncoder<ServerFrame>ExceptionCopyright © 2015. All Rights Reserved.