@ChannelHandler.Sharable
public class Encoder
extends org.jboss.netty.handler.codec.oneone.OneToOneEncoder
| Constructor and Description |
|---|
Encoder() |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
encode(org.jboss.netty.channel.ChannelHandlerContext channelHandlerContext,
org.jboss.netty.channel.Channel channel,
Object msg) |
static org.jboss.netty.buffer.ChannelBuffer |
encodePacket(org.gearman.common.packets.Packet packet) |
static org.jboss.netty.buffer.ChannelBuffer |
encodeString(String message) |
static Encoder |
getInstance() |
public static Encoder getInstance()
public static org.jboss.netty.buffer.ChannelBuffer encodePacket(org.gearman.common.packets.Packet packet)
throws IllegalArgumentException
IllegalArgumentExceptionpublic static org.jboss.netty.buffer.ChannelBuffer encodeString(String message) throws IllegalArgumentException
IllegalArgumentExceptionCopyright © 2013. All Rights Reserved.