public class DefaultZkSerializer extends Object implements org.I0Itec.zkclient.serialize.ZkSerializer
If the user is not configured in config.zk.serializer configuration item, then use default serializer.
| Constructor and Description |
|---|
DefaultZkSerializer() |
| Modifier and Type | Method and Description |
|---|---|
Object |
deserialize(byte[] bytes) |
byte[] |
serialize(Object data) |
public byte[] serialize(Object data) throws org.I0Itec.zkclient.exception.ZkMarshallingError
serialize in interface org.I0Itec.zkclient.serialize.ZkSerializerorg.I0Itec.zkclient.exception.ZkMarshallingErrorpublic Object deserialize(byte[] bytes) throws org.I0Itec.zkclient.exception.ZkMarshallingError
deserialize in interface org.I0Itec.zkclient.serialize.ZkSerializerorg.I0Itec.zkclient.exception.ZkMarshallingErrorCopyright © 2023 Seata. All rights reserved.