org.msgpack.rpc.loop.netty
Class MessagePackEncoder

java.lang.Object
  extended by org.jboss.netty.handler.codec.oneone.OneToOneEncoder
      extended by org.msgpack.rpc.loop.netty.MessagePackEncoder
All Implemented Interfaces:
org.jboss.netty.channel.ChannelDownstreamHandler, org.jboss.netty.channel.ChannelHandler

public class MessagePackEncoder
extends org.jboss.netty.handler.codec.oneone.OneToOneEncoder


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler
org.jboss.netty.channel.ChannelHandler.Sharable
 
Constructor Summary
MessagePackEncoder()
           
MessagePackEncoder(int estimatedLength)
           
 
Method Summary
protected  java.lang.Object encode(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.Channel channel, java.lang.Object msg)
           
 
Methods inherited from class org.jboss.netty.handler.codec.oneone.OneToOneEncoder
handleDownstream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessagePackEncoder

public MessagePackEncoder()

MessagePackEncoder

public MessagePackEncoder(int estimatedLength)
Method Detail

encode

protected java.lang.Object encode(org.jboss.netty.channel.ChannelHandlerContext ctx,
                                  org.jboss.netty.channel.Channel channel,
                                  java.lang.Object msg)
                           throws java.lang.Exception
Specified by:
encode in class org.jboss.netty.handler.codec.oneone.OneToOneEncoder
Throws:
java.lang.Exception


Copyright © 2010. All Rights Reserved.