Class JsonObjectSerializer
- java.lang.Object
-
- io.vertx.servicediscovery.zookeeper.JsonObjectSerializer
-
- All Implemented Interfaces:
org.apache.curator.x.discovery.details.InstanceSerializer<JsonObject>
public class JsonObjectSerializer extends Object implements org.apache.curator.x.discovery.details.InstanceSerializer<JsonObject>
- Author:
- Clement Escoffier
-
-
Constructor Summary
Constructors Constructor Description JsonObjectSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.curator.x.discovery.ServiceInstance<JsonObject>
deserialize(byte[] bytes)
byte[]
serialize(org.apache.curator.x.discovery.ServiceInstance<JsonObject> instance)
-
-
-
Method Detail
-
serialize
public byte[] serialize(org.apache.curator.x.discovery.ServiceInstance<JsonObject> instance) throws Exception
- Specified by:
serialize
in interfaceorg.apache.curator.x.discovery.details.InstanceSerializer<JsonObject>
- Throws:
Exception
-
deserialize
public org.apache.curator.x.discovery.ServiceInstance<JsonObject> deserialize(byte[] bytes) throws Exception
- Specified by:
deserialize
in interfaceorg.apache.curator.x.discovery.details.InstanceSerializer<JsonObject>
- Throws:
Exception
-
-