public class FixedJsonInstanceSerializer<T> extends Object implements org.apache.curator.x.discovery.details.InstanceSerializer<T>
Constructor and Description |
---|
FixedJsonInstanceSerializer(Class<T> payloadClass) |
FixedJsonInstanceSerializer(Class<T> pPayloadClass,
org.codehaus.jackson.map.ObjectMapper pMapper) |
Modifier and Type | Method and Description |
---|---|
org.apache.curator.x.discovery.ServiceInstance<T> |
deserialize(byte[] pBytes) |
byte[] |
serialize(org.apache.curator.x.discovery.ServiceInstance<T> pInstance) |
public FixedJsonInstanceSerializer(Class<T> payloadClass)
payloadClass
- used to validate payloads when deserializingpublic FixedJsonInstanceSerializer(Class<T> pPayloadClass, org.codehaus.jackson.map.ObjectMapper pMapper)
Copyright © 2018 Apache Software Foundation. All rights reserved.