- All Implemented Interfaces:
- org.jboss.netty.channel.ChannelDownstreamHandler, org.jboss.netty.channel.ChannelHandler
@ChannelHandler.Sharable
public class EventEncoder
extends org.jboss.netty.handler.codec.oneone.OneToOneEncoder
A simple event encoder will receive an incoming event, and convert it to a
ChannelBuffer
. It will read the event type and put it as the
opcode(i.e first byte of the buffer), then it will read the event body and
put convert to ChannelBuffer if necessary and put it as the body of the
message.
- Author:
- Abraham Menacherry