@ChannelHandler.Sharable public class MessageBufferEventEncoder extends io.netty.handler.codec.MessageToMessageEncoder<Event>
| Constructor and Description |
|---|
MessageBufferEventEncoder() |
| Modifier and Type | Method and Description |
|---|---|
protected io.netty.buffer.ByteBuf |
encode(io.netty.channel.ChannelHandlerContext ctx,
Event event)
Encode is separated out so that child classes can still reuse this
functionality.
|
protected void |
encode(io.netty.channel.ChannelHandlerContext ctx,
Event event,
List<Object> out) |
acceptOutboundMessage, writebind, close, connect, deregister, disconnect, flush, readexceptionCaught, handlerAdded, handlerRemovedprotected void encode(io.netty.channel.ChannelHandlerContext ctx,
Event event,
List<Object> out)
throws Exception
protected io.netty.buffer.ByteBuf encode(io.netty.channel.ChannelHandlerContext ctx,
Event event)
ctx - event - The event to be encoded into ByteBuf. It will be
converted to 'opcode'-'payload' format.ByteBuf is
returned, otherwise a byte buf with 'opcode'-'payload' format is
returned.Copyright © 2013. All Rights Reserved.