public static class NettyTransportCodec.NettyFrameEncoder
extends org.jboss.netty.handler.codec.oneone.OneToOneEncoder
Constructor and Description |
---|
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
|
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–2020 The Apache Software Foundation. All rights reserved.