public static class NettyTransportCodec.NettyFrameEncoder
extends org.jboss.netty.handler.codec.oneone.OneToOneEncoder
Constructor and Description |
---|
NettyTransportCodec.NettyFrameEncoder() |
Modifier and Type | Method and Description |
---|---|
protected Object |
encode(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.Channel channel,
Object msg)
encode msg to ChannelBuffer
|
public NettyTransportCodec.NettyFrameEncoder()
protected Object encode(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.Channel channel, Object msg) throws Exception
encode
in class org.jboss.netty.handler.codec.oneone.OneToOneEncoder
msg
- NettyDataPack from
NettyServerAvroHandler/NettyClientAvroHandler in the pipelineException
Copyright © 2009–2016 The Apache Software Foundation. All rights reserved.