Class 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 Detail

      • JsonObjectSerializer

        public JsonObjectSerializer()
    • Method Detail

      • serialize

        public byte[] serialize​(org.apache.curator.x.discovery.ServiceInstance<JsonObject> instance)
                         throws Exception
        Specified by:
        serialize in interface org.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 interface org.apache.curator.x.discovery.details.InstanceSerializer<JsonObject>
        Throws:
        Exception