[Dubbo-5200] fix javadoc for Serialization.getContentTypeId (#5201)

This commit is contained in:
RojerAlone 2019-11-26 21:17:48 +08:00 committed by Huang YunKun
parent e5bc3c642f
commit 170a8c9c2a
1 changed files with 4 additions and 2 deletions

View File

@ -36,7 +36,9 @@ import java.io.OutputStream;
public interface Serialization {
/**
* Get content type unique id, recommended that custom implementations use values greater than 20.
* Get content type unique id, recommended that custom implementations use values different with
* any value of {@link Constants} and don't greater than ExchangeCodec.SERIALIZATION_MASK (31)
* because dubbo protocol use 5 bits to record serialization ID in header.
*
* @return content type id
*/
@ -71,4 +73,4 @@ public interface Serialization {
@Adaptive
ObjectInput deserialize(URL url, InputStream input) throws IOException;
}
}