接口 Serialization


  • @SPI(value="hessian2",
         scope=FRAMEWORK)
    public interface Serialization
    Serialization strategy interface that specifies a serializer. (SPI, Singleton, ThreadSafe) The default extension is hessian2 and the default serialization implementation of the dubbo protocol.
         e.g. <dubbo:protocol serialization="xxx" />
     
    • 方法详细资料

      • getContentTypeId

        byte getContentTypeId()
        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.
        返回:
        content type id
      • getContentType

        String getContentType()
        Get content type
        返回:
        content type