@Spi(scope=PROTOTYPE) public interface Serialization
| Modifier and Type | Method and Description |
|---|---|
<T> T |
deserialize(byte[] bytes,
Class<T> clz) |
Object[] |
deserializeMulti(byte[] data,
Class<?>[] classes) |
int |
getSerializationNumber()
serializaion的唯一编号,用于传输协议中指定序列化方式。每种序列化的编号必须唯一。
|
byte[] |
serialize(Object obj) |
byte[] |
serializeMulti(Object[] data) |
byte[] serialize(Object obj) throws IOException
IOException<T> T deserialize(byte[] bytes,
Class<T> clz)
throws IOException
IOExceptionbyte[] serializeMulti(Object[] data) throws IOException
IOExceptionObject[] deserializeMulti(byte[] data, Class<?>[] classes) throws IOException
IOExceptionint getSerializationNumber()
Copyright © 2019. All rights reserved.