public class KryoPoolSerializer extends Object implements Serializer
| 限定符和类型 | 类和说明 |
|---|---|
static class |
KryoPoolSerializer.KryoPoolImpl
由于kryo创建的代价相对较高 ,这里使用空间换时间
对KryoHolder对象进行重用
|
| 构造器和说明 |
|---|
KryoPoolSerializer() |
public String name()
name 在接口中 Serializerpublic byte[] serialize(Object obj) throws IOException
serialize 在接口中 Serializerobj - what to serializeIOExceptionpublic Object deserialize(byte[] bytes) throws IOException
deserialize 在接口中 Serializerbytes - what to deserializeIOExceptionCopyright © 2025. All rights reserved.