@Deprecated public class ThriftCodec extends Object implements Codec2
Codec2.DecodeResult| 限定符和类型 | 字段和说明 |
|---|---|
static short |
MAGIC
已过时。
|
static int |
MESSAGE_HEADER_LENGTH_INDEX
已过时。
|
static int |
MESSAGE_LENGTH_INDEX
已过时。
|
static int |
MESSAGE_SHORTEST_LENGTH
已过时。
|
static String |
NAME
已过时。
|
static String |
PARAMETER_CLASS_NAME_GENERATOR
已过时。
|
static byte |
VERSION
已过时。
|
| 构造器和说明 |
|---|
ThriftCodec()
已过时。
|
public static final int MESSAGE_LENGTH_INDEX
public static final int MESSAGE_HEADER_LENGTH_INDEX
public static final int MESSAGE_SHORTEST_LENGTH
public static final String PARAMETER_CLASS_NAME_GENERATOR
public static final byte VERSION
public static final short MAGIC
public void encode(Channel channel, ChannelBuffer buffer, Object message) throws IOException
encode 在接口中 Codec2IOExceptionpublic Object decode(Channel channel, ChannelBuffer buffer) throws IOException
decode 在接口中 Codec2IOExceptionCopyright © 2011–2021 The Apache Software Foundation. All rights reserved.