public class ThriftFrameDecoder
extends org.jboss.netty.handler.codec.frame.FrameDecoder
限定符和类型 | 字段和说明 |
---|---|
static short |
MESSAGE_FRAME_SIZE |
构造器和说明 |
---|
ThriftFrameDecoder(int maxFrameSize,
org.apache.thrift.protocol.TProtocolFactory inputProtocolFactory) |
限定符和类型 | 方法和说明 |
---|---|
protected TNettyMessage |
decode(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.Channel channel,
org.jboss.netty.buffer.ChannelBuffer buffer) |
protected org.jboss.netty.buffer.ChannelBuffer |
extractFrame(org.jboss.netty.buffer.ChannelBuffer buffer,
int index,
int length) |
protected org.jboss.netty.buffer.ChannelBuffer |
tryDecodeFramedMessage(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.Channel channel,
org.jboss.netty.buffer.ChannelBuffer buffer,
boolean stripFraming) |
protected org.jboss.netty.buffer.ChannelBuffer |
tryDecodeUnframedMessage(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.Channel channel,
org.jboss.netty.buffer.ChannelBuffer buffer,
org.apache.thrift.protocol.TProtocolFactory inputProtocolFactory) |
actualReadableBytes, afterAdd, afterRemove, appendToCumulation, beforeAdd, beforeRemove, channelClosed, channelDisconnected, cleanup, decodeLast, exceptionCaught, getMaxCumulationBufferCapacity, getMaxCumulationBufferComponents, internalBuffer, isUnfold, messageReceived, newCumulationBuffer, replace, setMaxCumulationBufferCapacity, setMaxCumulationBufferComponents, setUnfold, unfoldAndFireMessageReceived, updateCumulation
public static final short MESSAGE_FRAME_SIZE
public ThriftFrameDecoder(int maxFrameSize, org.apache.thrift.protocol.TProtocolFactory inputProtocolFactory)
protected TNettyMessage decode(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.Channel channel, org.jboss.netty.buffer.ChannelBuffer buffer) throws Exception
decode
在类中 org.jboss.netty.handler.codec.frame.FrameDecoder
Exception
protected org.jboss.netty.buffer.ChannelBuffer tryDecodeFramedMessage(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.Channel channel, org.jboss.netty.buffer.ChannelBuffer buffer, boolean stripFraming)
protected org.jboss.netty.buffer.ChannelBuffer tryDecodeUnframedMessage(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.Channel channel, org.jboss.netty.buffer.ChannelBuffer buffer, org.apache.thrift.protocol.TProtocolFactory inputProtocolFactory) throws org.apache.thrift.TException
org.apache.thrift.TException
protected org.jboss.netty.buffer.ChannelBuffer extractFrame(org.jboss.netty.buffer.ChannelBuffer buffer, int index, int length)
extractFrame
在类中 org.jboss.netty.handler.codec.frame.FrameDecoder
Copyright © 2016–2019. All rights reserved.