类 ThriftCodec

  • 所有已实现的接口:
    Codec2

    public class ThriftCodec
    extends Object
    implements Codec2
    Thrift framed protocol codec.
     |<-                                  message header                                  ->|<- message body ->|
     +----------------+----------------------+------------------+---------------------------+------------------+
     | magic (2 bytes)|message size (4 bytes)|head size(2 bytes)| version (1 byte) | header |   message body   |
     +----------------+----------------------+------------------+---------------------------+------------------+
     |<-                                               message size                                          ->|
     

    header fields in version 1

    1. string - service name
    2. long - dubbo request id