类 GenericProtobufJsonSerialization

  • 所有已实现的接口:
    Serialization

    public class GenericProtobufJsonSerialization
    extends Object
    implements Serialization
    This serialization is use for google protobuf generic reference. The entity be transported between client and server by json string.
    • 构造器详细资料

      • GenericProtobufJsonSerialization

        public GenericProtobufJsonSerialization()
    • 方法详细资料

      • getContentTypeId

        public byte getContentTypeId()
        从接口复制的说明: Serialization
        Get content type unique id, recommended that custom implementations use values different with any value of Constants and don't greater than ExchangeCodec.SERIALIZATION_MASK (31) because dubbo protocol use 5 bits to record serialization ID in header.
        指定者:
        getContentTypeId 在接口中 Serialization
        返回:
        content type id
      • serialize

        public ObjectOutput serialize​(URL url,
                                      OutputStream output)
        从接口复制的说明: Serialization
        Get a serialization implementation instance
        指定者:
        serialize 在接口中 Serialization
        参数:
        url - URL address for the remote service
        output - the underlying output stream
        返回:
        serializer
      • deserialize

        public ObjectInput deserialize​(URL url,
                                       InputStream input)
        从接口复制的说明: Serialization
        Get a deserialization implementation instance
        指定者:
        deserialize 在接口中 Serialization
        参数:
        url - URL address for the remote service
        input - the underlying input stream
        返回:
        deserializer