public interface InstanceSerializer<T>
Modifier and Type | Method and Description |
---|---|
ServiceInstance<T> |
deserialize(byte[] bytes)
Deserialize a byte array into an instance
|
byte[] |
serialize(ServiceInstance<T> instance)
Serialize an instance into bytes
|
byte[] serialize(ServiceInstance<T> instance) throws Exception
instance
- the instanceException
- any errorsServiceInstance<T> deserialize(byte[] bytes) throws Exception
bytes
- the bytesException
- any errorsCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.