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 java.lang.Exception
instance
- the instancejava.lang.Exception
- any errorsServiceInstance<T> deserialize(byte[] bytes) throws java.lang.Exception
bytes
- the bytesjava.lang.Exception
- any errors